diff --git a/libnetutil/ICMPv4Header.cc b/libnetutil/ICMPv4Header.cc index 0b18fb752..1a202840d 100755 --- a/libnetutil/ICMPv4Header.cc +++ b/libnetutil/ICMPv4Header.cc @@ -329,6 +329,8 @@ bool ICMPv4Header::validateType(u8 val){ case ICMP_MASK: case ICMP_MASKREPLY: case ICMP_TRACEROUTE: + case ICMP_DOMAINNAME: + case ICMP_DOMAINNAMEREPLY: return true; break; @@ -1060,6 +1062,11 @@ int ICMPv4Header::getICMPHeaderLengthFromType( u8 type ) const { case ICMP_TRACEROUTE: return 20; break; + + case ICMP_DOMAINNAME: + case ICMP_DOMAINNAMEREPLY: + return 8; + break; /* Packets with non RFC-Compliant types will be represented as an 8-byte ICMP header, just like the types that don't include