aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcpdump/print-frag6.c
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>2002-06-21 00:43:23 +0000
committerBill Fenner <fenner@FreeBSD.org>2002-06-21 00:43:23 +0000
commita90e161be323456b08b7fe13acb201536809510f (patch)
treebfb72dba6e8e623feaf334f1b808f93f5e292c68 /contrib/tcpdump/print-frag6.c
parent39eaefddae4491b77468e6ff0cd5f9a6b9acbf3d (diff)
downloadsrc-a90e161be323456b08b7fe13acb201536809510f.tar.gz
src-a90e161be323456b08b7fe13acb201536809510f.zip
Import tcpdump 3.7.1, from
Notes
Notes: svn path=/vendor/tcpdump/dist/; revision=98524
Diffstat (limited to 'contrib/tcpdump/print-frag6.c')
-rw-r--r--contrib/tcpdump/print-frag6.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/tcpdump/print-frag6.c b/contrib/tcpdump/print-frag6.c
index abf0cc6ca717..4553505a0c0a 100644
--- a/contrib/tcpdump/print-frag6.c
+++ b/contrib/tcpdump/print-frag6.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-frag6.c,v 1.12 2000/10/07 05:53:10 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
@@ -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;