Add compatibility assistant module
This commit is contained in:
@@ -30,6 +30,8 @@ const (
|
||||
ICMPv6 = IPProtocol(58)
|
||||
UDPLite = IPProtocol(136)
|
||||
RAW = IPProtocol(255)
|
||||
|
||||
AnyHostInternalProtocol61 = IPProtocol(61)
|
||||
)
|
||||
|
||||
// Verdicts
|
||||
|
||||
@@ -94,7 +94,12 @@ func parseIGMP(packet gopacket.Packet, info *Info) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func checkError(packet gopacket.Packet, _ *Info) error {
|
||||
func checkError(packet gopacket.Packet, info *Info) error {
|
||||
// Check for known unparseable before checking the error layer.
|
||||
if info.Protocol == AnyHostInternalProtocol61 {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := packet.ErrorLayer(); err != nil {
|
||||
return err.Error()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user