summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);