X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64b4695379923685260c4d6fe6a1034878d94e84..464c44fbd1394ac006d8d99f16e80ead423c1c47:/print-frag6.c diff --git a/print-frag6.c b/print-frag6.c index b2868964..533d730d 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-frag6.c,v 1.11 2000-10-03 02:19:05 itojun Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-frag6.c,v 1.13 2001-09-17 21:58:02 fenner Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -40,7 +40,7 @@ static const char rcsid[] = #include -#include +#include "ip6.h" #include "interface.h" #include "addrtoname.h" @@ -52,12 +52,8 @@ frag6_print(register const u_char *bp, register const u_char *bp2) register const struct ip6_hdr *ip6; register const u_char *ep; -#if 0 -#define TCHECK(var) if ((u_char *)&(var) >= ep - sizeof(var)) goto trunc -#endif - - dp = (struct ip6_frag *)bp; - ip6 = (struct ip6_hdr *)bp2; + dp = (const struct ip6_frag *)bp; + ip6 = (const struct ip6_hdr *)bp2; /* 'ep' points to the end of available data. */ ep = snapend;