This may avoid this error:
Dissector error: print_unknown_data() called with pointer past end of
packet
break;
}
/* do we want to see an additionally hexdump ? */
- if (ndo->ndo_vflag> 1) {
+ if (ndo->ndo_vflag > 1 && ND_TTEST_LEN(p, len)) {
if (!print_unknown_data(ndo, p, "\n\t", len))
return;
}
# RIP invalid
ripv2-invalid-length ripv2-invalid-length.pcap ripv2-invalid-length.out -v
+rip_error_hexdump rip_error_hexdump.pcap rip_error_hexdump.out -vv
# DHCPv6 tests
dhcpv6-aftr-name dhcpv6-AFTR-Name-RFC6334.pcap dhcpv6-AFTR-Name-RFC6334.out -v
--- /dev/null
+ 1 12:11:42.563815 IP (tos 0x0, ttl 64, id 1, offset 0, flags [+, DF], proto UDP (17), length 70, bad cksum 0 (->3903)!)
+ 0.254.96.182.520 > 255.127.128.111.65535:
+ RIPv2, Request, length: 42, routes: 1 or less
+ Unknown (26725) Authentication data:
+ 0x0000: 6901 0202 0421 0001 0281 8181 6bd4 c3b2
+ 0x0010: a102