diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-11 11:52:30 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-11 11:52:30 -0800 |
commit | 64677b0d78ff168d98c3035e894c4910c021136e (patch) | |
tree | cc8e70d60eb94840ed27b65275619ecc441d9714 /print-frag6.c | |
parent | 6c964291f360ff03c7947693957e51e880d34ee7 (diff) | |
download | tcpdump-64677b0d78ff168d98c3035e894c4910c021136e.tar.gz |
Clean up signed vs. unsigned.
Diffstat (limited to 'print-frag6.c')
-rw-r--r-- | print-frag6.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/print-frag6.c b/print-frag6.c index 4d0f3ca4..da8efcc6 100644 --- a/print-frag6.c +++ b/print-frag6.c @@ -44,16 +44,16 @@ frag6_print(netdissect_options *ndo, const u_char *bp, const u_char *bp2) ND_TCHECK_SIZE(dp); if (ndo->ndo_vflag) { - ND_PRINT("frag (0x%08x:%d|%ld)", + ND_PRINT("frag (0x%08x:%u|%u)", EXTRACT_BE_U_4(dp->ip6f_ident), EXTRACT_BE_U_2(dp->ip6f_offlg) & IP6F_OFF_MASK, - sizeof(struct ip6_hdr) + EXTRACT_BE_U_2(ip6->ip6_plen) - - (long)(bp - bp2) - sizeof(struct ip6_frag)); + (u_int)(sizeof(struct ip6_hdr) + EXTRACT_BE_U_2(ip6->ip6_plen) - + (bp - bp2) - sizeof(struct ip6_frag))); } else { - ND_PRINT("frag (%d|%ld)", + ND_PRINT("frag (%u|%u)", EXTRACT_BE_U_2(dp->ip6f_offlg) & IP6F_OFF_MASK, - sizeof(struct ip6_hdr) + EXTRACT_BE_U_2(ip6->ip6_plen) - - (long)(bp - bp2) - sizeof(struct ip6_frag)); + (u_int)(sizeof(struct ip6_hdr) + EXTRACT_BE_U_2(ip6->ip6_plen) - + (bp - bp2) - sizeof(struct ip6_frag))); } /* it is meaningless to decode non-first fragment */ |