summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-18 06:06:18 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2000-04-18 06:06:18 +0000
commit180083cb7709f32aa62ee6975b01ca38f530e79f (patch)
treeb5a0b43f2f7fe08d1124c5320523b3d9f54716ac /usr.sbin
parent0510d3c575d6ed518573c4a97860dda3063cafa1 (diff)
Print a parenthesis in front of security flags.
Diffstat (limited to 'usr.sbin')
-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 b843e35d9cb..d1df3c298e2 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.4 1999/12/08 21:45:00 angelos Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-enc.c,v 1.5 2000/04/18 06:06:17 angelos Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -84,6 +84,10 @@ enc_if_print(u_char *user, const struct pcap_pkthdr *h,
hdr = (struct enchdr *)p;
flags = hdr->flags;
+ if (flags == 0)
+ printf("(unprotected): ");
+ else
+ printf("(");
ENC_PRINT_TYPE(flags, M_AUTH, "authentic");
ENC_PRINT_TYPE(flags, M_CONF, "confidential");
/* ENC_PRINT_TYPE(flags, M_TUNNEL, "tunnel"); */