summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-08 13:28:07 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>1999-12-08 13:28:07 +0000
commit35f9d6b20c421690c7883ce058bf9bdd9f289506 (patch)
treec3fd98d8f767e37c05d33b915985e20f31440752 /usr.sbin/tcpdump
parent8b2673009be1776e5d572456ff6f1125a733c259 (diff)
avoid build breakage. (mbuf flag M_TUNNEL passed to userland???)
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/print-enc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-enc.c b/usr.sbin/tcpdump/print-enc.c
index 983216366f6..1f2e3ff5b63 100644
--- a/usr.sbin/tcpdump/print-enc.c
+++ b/usr.sbin/tcpdump/print-enc.c
@@ -21,7 +21,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-enc.c,v 1.2 1999/10/30 20:17:54 angelos Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-enc.c,v 1.3 1999/12/08 13:28:06 itojun Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -83,11 +83,15 @@ enc_if_print(u_char *user, const struct pcap_pkthdr *h,
snapend = p + caplen;
hdr = (struct enchdr *)p;
+#if 0
printf("SPI 0x%08x (", ntohl(hdr->spi));
flags = hdr->flags;
ENC_PRINT_TYPE(flags, M_AUTH, "authentic");
ENC_PRINT_TYPE(flags, M_CONF, "confidential");
ENC_PRINT_TYPE(flags, M_TUNNEL, "tunnel");
+#else
+ printf("SPI 0x%08x: ", ntohl(hdr->spi));
+#endif
length -= ENC_HDRLEN;
ip = (struct ip *)(p + ENC_HDRLEN);