From f6a70e743283b5f32ee9a327bdc0512b4e9a0a38 Mon Sep 17 00:00:00 2001 From: angelos Date: Tue, 18 Apr 2000 06:06:17 +0000 Subject: [PATCH] Print a parenthesis in front of security flags. --- usr.sbin/tcpdump/print-enc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.sbin/tcpdump/print-enc.c b/usr.sbin/tcpdump/print-enc.c index 97f7fa90644..6a34a958b8e 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: /home/cvs/src/usr.sbin/tcpdump/print-enc.c,v 1.4 1999/12/08 21:45:00 angelos Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/usr.sbin/tcpdump/print-enc.c,v 1.5 2000/04/18 06:06:17 angelos Exp $ (LBL)"; #endif #include @@ -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"); */ -- 2.20.1