summaryrefslogtreecommitdiff
path: root/print-ah.c
diff options
context:
space:
mode:
authoritojun <itojun>2000-12-12 09:58:40 +0000
committeritojun <itojun>2000-12-12 09:58:40 +0000
commit8e338956f8cd60e49364585bdfd2f9f5c89975da (patch)
treeddc640ddc5767194cb1f302a5c7c553e50dbeb74 /print-ah.c
parent8f9b0fb4a13a3cb56b1acb9f10b1c0449dd346ba (diff)
downloadtcpdump-8e338956f8cd60e49364585bdfd2f9f5c89975da.tar.gz
print SPI in hex.
Diffstat (limited to 'print-ah.c')
-rw-r--r--print-ah.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ah.c b/print-ah.c
index be1e67ce..b2441aaa 100644
--- a/print-ah.c
+++ b/print-ah.c
@@ -23,7 +23,7 @@
#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
@@ -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);
- 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)));