]> The Tcpdump Group git mirrors - tcpdump/commitdiff
print SPI in hex.
authoritojun <itojun>
Tue, 12 Dec 2000 09:58:40 +0000 (09:58 +0000)
committeritojun <itojun>
Tue, 12 Dec 2000 09:58:40 +0000 (09:58 +0000)
print-ah.c
print-esp.c
print-ipcomp.c

index be1e67ce8ea0f2d60943fd49b4b56aeb750d7ea1..b2441aaa2d80522e0c5a94e0065b01b18efdb705 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ah.c,v 1.13 2000-10-06 11:32:18 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ah.c,v 1.14 2000-12-12 09:58:40 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -61,7 +61,7 @@ ah_print(register const u_char *bp, register const u_char *bp2)
        sumlen = ah->ah_len << 2;
        spi = (u_int32_t)ntohl(ah->ah_spi);
 
        sumlen = ah->ah_len << 2;
        spi = (u_int32_t)ntohl(ah->ah_spi);
 
-       printf("AH(spi=%u", spi);
+       printf("AH(spi=0x%08x", spi);
        if (vflag)
                printf(",sumlen=%d", sumlen);
        printf(",seq=0x%x", (u_int32_t)ntohl(*(u_int32_t *)(ah + 1)));
        if (vflag)
                printf(",sumlen=%d", sumlen);
        printf(",seq=0x%x", (u_int32_t)ntohl(*(u_int32_t *)(ah + 1)));
index d3cffd70c0ffe3fe637d51ce07ba5a42f94e9e04..a57e072b31a654d9efeb7c6bbe100ced23c7c2c5 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.16 2000-10-07 05:53:10 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.17 2000-12-12 09:58:41 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -87,7 +87,7 @@ esp_print(register const u_char *bp, register const u_char *bp2, int *nhdr)
                fputs("[|ESP]", stdout);
                goto fail;
        }
                fputs("[|ESP]", stdout);
                goto fail;
        }
-       printf("ESP(spi=%u", spi);
+       printf("ESP(spi=0x%08x", spi);
        printf(",seq=0x%x", (u_int32_t)ntohl(*(u_int32_t *)(esp + 1)));
        printf(")");
 
        printf(",seq=0x%x", (u_int32_t)ntohl(*(u_int32_t *)(esp + 1)));
        printf(")");
 
index 56172ea181a07680e4864efb2996a89b534b0a35..6509f9eddacfde588a1b28700d119e1408f5722e 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ipcomp.c,v 1.12 2000-10-07 05:46:21 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
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -71,7 +71,7 @@ ipcomp_print(register const u_char *bp, register const u_char *bp2, int *nhdr)
                fputs("[|IPCOMP]", stdout);
                goto fail;
        }
                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)
 
 #if defined(HAVE_LIBZ) && defined(HAVE_ZLIB_H)
        if (1)