summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-05-03 10:17:24 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-05-03 10:17:24 +0000
commit6028b023338d05b45a0acd124249a6b3ac7495f5 (patch)
treebd5f449b99db1b23fc3869b0a5e9d381990f86c0 /usr.sbin/tcpdump
parente80bf7425576ea69b4d12d80cc8031bf730710f4 (diff)
esp/ah sequence number is unsigned and should be printed as such;
ok haesbaert, sthen, yasuoka, mpf
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-ipsec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-ipsec.c b/usr.sbin/tcpdump/print-ipsec.c
index 5e8eea70d26..a4d1ed45eb8 100644
--- a/usr.sbin/tcpdump/print-ipsec.c
+++ b/usr.sbin/tcpdump/print-ipsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-ipsec.c,v 1.16 2010/04/06 16:01:57 jsg Exp $ */
+/* $OpenBSD: print-ipsec.c,v 1.17 2012/05/03 10:17:23 mikeb Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
@@ -230,7 +230,7 @@ esp_print (register const u_char *bp, register u_int len,
}
esp = (const struct esp_hdr *)bp;
- printf(" spi 0x%08x seq %d len %d",
+ printf(" spi 0x%08x seq %u len %d",
ntohl(esp->esp_spi), ntohl(esp->esp_seq), len);
if (espinit)
@@ -278,7 +278,7 @@ ah_print (register const u_char *bp, register u_int len,
}
ah = (const struct ah_hdr *)bp;
- printf(" spi 0x%08X seq %d len %d",
+ printf(" spi 0x%08x seq %u len %d",
ntohl(ah->ah_spi), ntohl(ah->ah_seq), len);
if (vflag) {