summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ipsec.c
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2012-05-03 10:17:23 +0000
committermikeb <mikeb@openbsd.org>2012-05-03 10:17:23 +0000
commit24d5eb07f9c60f2c40fa4a894cc3b708cf0227ed (patch)
treee5a436cb60f9159da7069fc54fffee1a9a4f7dab /usr.sbin/tcpdump/print-ipsec.c
parentAdd pthread spinlock support. (diff)
downloadwireguard-openbsd-24d5eb07f9c60f2c40fa4a894cc3b708cf0227ed.tar.xz
wireguard-openbsd-24d5eb07f9c60f2c40fa4a894cc3b708cf0227ed.zip
esp/ah sequence number is unsigned and should be printed as such;
ok haesbaert, sthen, yasuoka, mpf
Diffstat (limited to 'usr.sbin/tcpdump/print-ipsec.c')
-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) {