X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64677b0d78ff168d98c3035e894c4910c021136e..6ed7ed47119acf3033a9a43da4b792b6ecb574bc:/print-icmp.c diff --git a/print-icmp.c b/print-icmp.c index a1300448..7e7db14a 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -22,10 +22,10 @@ /* \summary: Internet Control Message Protocol (ICMP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include #include @@ -368,7 +368,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * break; case ICMP_UNREACH: - ND_TCHECK(dp->icmp_ip.ip_dst); + ND_TCHECK_4(dp->icmp_ip.ip_dst); switch (icmp_code) { case ICMP_UNREACH_PROTOCOL: @@ -439,7 +439,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * break; case ICMP_REDIRECT: - ND_TCHECK(dp->icmp_ip.ip_dst); + ND_TCHECK_4(dp->icmp_ip.ip_dst); fmt = tok2str(type2str, "redirect-#%u %%s to net %%s", icmp_code); (void)snprintf(buf, sizeof(buf), fmt, @@ -499,7 +499,7 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * break; case ICMP_TIMXCEED: - ND_TCHECK(dp->icmp_ip.ip_dst); + ND_TCHECK_4(dp->icmp_ip.ip_dst); switch (icmp_code) { case ICMP_TIMXCEED_INTRANS: