X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7b50febe28e54e076a9917164eeddec4bc7a170e..c23f7b7dcf9c014cf531d75c22cc254c7ca35e55:/print-ipcomp.c diff --git a/print-ipcomp.c b/print-ipcomp.c index 70cf7aa0..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.6 2000-09-23 08:26:35 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,21 +34,10 @@ static const char rcsid[] = #include #include -#include -#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 */ @@ -75,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)