]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ipcomp.c
There's no link-layer header on Linux ARPHRD_ATM packets; there's
[tcpdump] / print-ipcomp.c
index 1e8936ffe438cdd8e843bcfb9d76f93e6f1d5cd3..6509f9eddacfde588a1b28700d119e1408f5722e 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ipcomp.c,v 1.11 2000-10-06 04:23:12 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
@@ -38,10 +38,6 @@ static const char rcsid[] =
 
 #include <stdio.h>
 
-#ifdef INET6
-#include <netinet/ip6.h>
-#endif
-
 struct ipcomp {
        u_int8_t comp_nxt;      /* Next Header */
        u_int8_t comp_flags;    /* Length of data, in 32bit */
@@ -75,7 +71,7 @@ ipcomp_print(register const u_char *bp, register const u_char *bp2, int *nhdr)
                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)