Silience "not found" errors in recover-iptables

This commit is contained in:
Patrick Pacher
2020-08-04 09:55:49 +02:00
parent 866f1981e0
commit 071f2a9bd5
3 changed files with 84 additions and 17 deletions

View File

@@ -58,6 +58,7 @@ func parseUDP(packet gopacket.Packet, info *Info) error {
return nil
}
/*
func parseUDPLite(packet gopacket.Packet, info *Info) error {
if udpLite, ok := packet.TransportLayer().(*layers.UDPLite); ok {
info.Protocol = UDPLite
@@ -66,6 +67,7 @@ func parseUDPLite(packet gopacket.Packet, info *Info) error {
}
return nil
}
*/
func parseICMPv4(packet gopacket.Packet, info *Info) error {
if icmp, ok := packet.Layer(layers.LayerTypeICMPv4).(*layers.ICMPv4); ok {