misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-09-13 16:44:08 +02:00
parent c8f60e5968
commit 31489e4d70
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -96,6 +96,7 @@ func mainParser(pkt gopacket.Packet, verbose bool) bool {
if nlayer != nil {
if nlayer.LayerType() != layers.LayerTypeIPv4 {
log.Debug("Unexpected layer type %s, skipping packet.", nlayer.LayerType())
log.Debug("%s", pkt.Dump())
return false
}