X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/536f5125835b031330f472aebed8241a1718b018..13c623cda77c2215c1641c53edf6e2de1786f36b:/print-ipcomp.c diff --git a/print-ipcomp.c b/print-ipcomp.c index 4994b49f..6509f9ed 100644 --- a/print-ipcomp.c +++ b/print-ipcomp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-ipcomp.c,v 1.7 2000-09-23 08:54:31 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ipcomp.c,v 1.13 2000-12-12 09:58:41 itojun Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -34,18 +34,10 @@ static const char rcsid[] = #include #include -#include -#include - #include -#include #include -#ifdef INET6 -#include -#endif - struct ipcomp { u_int8_t comp_nxt; /* Next Header */ u_int8_t comp_flags; /* Length of data, in 32bit */ @@ -72,14 +64,14 @@ ipcomp_print(register const u_char *bp, register const u_char *bp2, int *nhdr) ipcomp = (struct ipcomp *)bp; cpi = (u_int16_t)ntohs(ipcomp->comp_cpi); - /* 'ep' points to the end of avaible data. */ + /* 'ep' points to the end of available data. */ ep = snapend; if ((u_char *)(ipcomp + 1) >= ep - sizeof(struct ipcomp)) { fputs("[|IPCOMP]", stdout); goto fail; } - printf("IPComp(cpi=%u)", cpi); + printf("IPComp(cpi=0x%04x)", cpi); #if defined(HAVE_LIBZ) && defined(HAVE_ZLIB_H) if (1)