summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump/print-ipsec.c
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@cvs.openbsd.org>1999-09-21 20:54:59 +0000
committerJakob Schlyter <jakob@cvs.openbsd.org>1999-09-21 20:54:59 +0000
commit41bcb7f6e306a60b3b9a701f9b6102faccc3b7f8 (patch)
treee6cc809268bbd4e634bbb71a72aaeee822706039 /usr.sbin/tcpdump/print-ipsec.c
parent82e8016590d21934ccaaa42b13b402744439b2ca (diff)
print ESP/AH packet length; <ho@openbsd.org>
Diffstat (limited to 'usr.sbin/tcpdump/print-ipsec.c')
-rw-r--r--usr.sbin/tcpdump/print-ipsec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-ipsec.c b/usr.sbin/tcpdump/print-ipsec.c
index 798a460a2d1..fc8ab69d9e6 100644
--- a/usr.sbin/tcpdump/print-ipsec.c
+++ b/usr.sbin/tcpdump/print-ipsec.c
@@ -26,7 +26,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ipsec.c,v 1.1 1999/07/28 20:41:36 jakob Exp $ (XXX)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-ipsec.c,v 1.2 1999/09/21 20:54:58 jakob Exp $ (XXX)";
#endif
#include <sys/param.h>
@@ -71,10 +71,10 @@ void esp_print(register const u_char *bp, register u_int len,
ip = (const struct ip *)bp2;
esp = (const struct esp_hdr *)bp;
- (void)printf("esp %s > %s spi 0x%08X seq %d",
+ (void)printf("esp %s > %s spi 0x%08X seq %d len %d",
ipaddr_string(&ip->ip_src),
ipaddr_string(&ip->ip_dst),
- ntohl(esp->esp_spi), ntohl(esp->esp_seq));
+ ntohl(esp->esp_spi), ntohl(esp->esp_seq), len);
}
@@ -96,9 +96,9 @@ ah_print(register const u_char *bp, register u_int len,
ip = (const struct ip *)bp2;
ah = (const struct ah_hdr *)bp;
- (void)printf("ah %s > %s spi 0x%08X seq %d",
+ (void)printf("ah %s > %s spi 0x%08X seq %d len %d",
ipaddr_string(&ip->ip_src),
ipaddr_string(&ip->ip_dst),
- ntohl(ah->ah_spi), ntohl(ah->ah_seq));
+ ntohl(ah->ah_spi), ntohl(ah->ah_seq), len);
}