aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tacacs.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-11 16:03:34 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-11 16:03:34 +0000
commitd0817f4d524627d48f0c25b0fb91ed569fa60468 (patch)
tree38d1d5f8eebd5d5f50385d9a612516fe303d7a23 /packet-tacacs.c
parent0c18ef735cf94742ddac7e16d664ff4855f6eb1e (diff)
Put the settings of the flags into the summary line for the TACACS+
flags field. svn path=/trunk/; revision=3690
Diffstat (limited to 'packet-tacacs.c')
-rw-r--r--packet-tacacs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-tacacs.c b/packet-tacacs.c
index d304ad9116..4094a2a0b8 100644
--- a/packet-tacacs.c
+++ b/packet-tacacs.c
@@ -2,7 +2,7 @@
* Routines for cisco tacacs/xtacacs/tacacs+ packet dissection
* Copyright 2001, Paul Ionescu <paul@acorp.ro>
*
- * $Id: packet-tacacs.c,v 1.14 2001/07/11 07:03:45 guy Exp $
+ * $Id: packet-tacacs.c,v 1.15 2001/07/11 16:03:34 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -372,7 +372,13 @@ dissect_tacplus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(tacplus_tree, hf_tacplus_seqno, tvb, 2, 1,
FALSE);
flags = tvb_get_guint8(tvb,3);
- tf = proto_tree_add_uint(tacplus_tree, hf_tacplus_flags, tvb, 3, 1,
+ tf = proto_tree_add_uint_format(tacplus_tree, hf_tacplus_flags,
+ tvb, 3, 1, flags,
+ "Flags: %s, %s (0x%02x)",
+ (flags&FLAGS_UNENCRYPTED) ? "Unencrypted payload" :
+ "Encrypted payload",
+ (flags&FLAGS_SINGLE) ? "Single connection" :
+ "Multiple Connections",
flags);
flags_tree = proto_item_add_subtree(tf, ett_tacplus_flags);
proto_tree_add_boolean(flags_tree, hf_tacplus_flags_payload_type,