Go -> C++

This commit is contained in:
DomySh
2022-07-15 10:08:54 +02:00
parent f6d7e948c3
commit d254d9f4f9
2 changed files with 206 additions and 0 deletions

View File

@@ -132,6 +132,8 @@ func handle_packets(packets <-chan netfilter.NFPacket, filter_table_channel chan
}
case p := <-packets:
{
p.SetVerdict(netfilter.NF_ACCEPT)
break
transport_layer := p.Packet.TransportLayer()
data := transport_layer.LayerPayload()
if len(data) > 0 {