diff options
author | guy <guy> | 2002-12-11 22:29:21 +0000 |
---|---|---|
committer | guy <guy> | 2002-12-11 22:29:21 +0000 |
commit | 3c252e8be08ba708471186184d006f34b4270190 (patch) | |
tree | 805348a52989311cbd3b0b8eb9d0a8940a0e6e23 /print-frag6.c | |
parent | ae560894b5ede9299ff840b2d7f3b708cd5b6b04 (diff) | |
download | tcpdump-3c252e8be08ba708471186184d006f34b4270190.tar.gz |
Fix up some errors from the previous checkin.
Fix up some const and unsigned issues.
Make static some routines unused outside the file in which they're
defined.
Diffstat (limited to 'print-frag6.c')
-rw-r--r-- | print-frag6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/print-frag6.c b/print-frag6.c index c3cbe2f5..267ad650 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.15 2002-12-11 07:14:00 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-frag6.c,v 1.16 2002-12-11 22:29:21 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -58,19 +58,19 @@ frag6_print(register const u_char *bp, register const u_char *bp2) if (vflag) { printf("frag (0x%08x:%d|%ld)", EXTRACT_32BITS(&dp->ip6f_ident), - EXTRACT_16BITS(&dp->ip6f_offlg & IP6F_OFF_MASK), + EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK, sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - (long)(bp - bp2) - sizeof(struct ip6_frag)); } else { printf("frag (%d|%ld)", - EXTRACT_16BITS(&dp->ip6f_offlg & IP6F_OFF_MASK), + EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK, sizeof(struct ip6_hdr) + EXTRACT_16BITS(&ip6->ip6_plen) - (long)(bp - bp2) - sizeof(struct ip6_frag)); } #if 1 /* it is meaningless to decode non-first fragment */ - if (EXTRACT_16BITS(&dp->ip6f_offlg & IP6F_OFF_MASK) != 0) + if ((EXTRACT_16BITS(&dp->ip6f_offlg) & IP6F_OFF_MASK) != 0) return 65535; else #endif |