aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-06-19 04:10:33 +0000
committerGuy Harris <guy@alum.mit.edu>2004-06-19 04:10:33 +0000
commitf9dbc641e5452bdafb0290c2ba777f9f00edd82a (patch)
tree3761b2a379e42b37f463a85430489384f41faec4
parent7002776572e651843e3e7f7e429ccf13fea1ece5 (diff)
From Thomas Anders: display the Security Parameter Lifetime as a
relative time string rather than raw seconds. svn path=/trunk/; revision=11183
-rw-r--r--packet-pktc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet-pktc.c b/packet-pktc.c
index 18f11cefbb..909c464eb1 100644
--- a/packet-pktc.c
+++ b/packet-pktc.c
@@ -9,7 +9,7 @@
* Ronnie Sahlberg 2004
* Thomas Anders 2004
*
- * $Id: packet-pktc.c,v 1.8 2004/06/05 02:57:48 sahlberg Exp $
+ * $Id: packet-pktc.c,v 1.9 2004/06/19 04:10:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -369,7 +369,10 @@ dissect_pktc_ap_reply(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int o
offset=dissect_pktc_list_of_ciphersuites(pinfo, tree, tvb, offset, doi);
/* sec param lifetime */
- proto_tree_add_item(tree, hf_pktc_sec_param_lifetime, tvb, offset, 4, FALSE);
+ proto_tree_add_uint_format(tree, hf_pktc_sec_param_lifetime, tvb, offset, 4,
+ tvb_get_ntohl(tvb, offset), "%s: %s",
+ proto_registrar_get_name(hf_pktc_sec_param_lifetime),
+ time_secs_to_str(tvb_get_ntohl(tvb, offset)));
offset+=4;
/* grace period */