]> 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 39739311a047f441fa24598e2b4f0867e1a0fba1..6509f9eddacfde588a1b28700d119e1408f5722e 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ipcomp.c,v 1.10 2000-10-03 02:19:06 itojun 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,16 +34,10 @@ static const char rcsid[] =
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#include <net/route.h>
-
 #include <netinet/in.h>
 
 #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 */
@@ -77,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)