diff options
author | Guy Harris <guy@alum.mit.edu> | 2009-12-10 22:15:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2009-12-10 22:15:59 +0000 |
commit | e1a76d5e2bfd3ecf9ab082a46dc2aa9c4bd4d4e2 (patch) | |
tree | fc0742e7f9fd6f3c9a2c21b6210cae099b78a6ba | |
parent | 28ccd651bf044f4b2af9e62e733725d8065f522d (diff) |
Well, not quite - proto_tree_add_item() doesn't work on FT_ABSOLUTE_TIME
fields, as there are several different possible time formats, and
there's not yet any way to specify the particular format. However, we
don't need to format the time stamp - let the Wireshark core code do that.
svn path=/trunk/; revision=31226
-rw-r--r-- | epan/dissectors/packet-epl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c index 4efaff442b..490d98d86f 100644 --- a/epan/dissectors/packet-epl.c +++ b/epan/dissectors/packet-epl.c @@ -437,6 +437,7 @@ decode_epl_address_abbrev (guchar adr) gint dissect_epl_soc(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo, gint offset) { + nstime_t nettime; guint8 flags; offset += 1; @@ -457,7 +458,9 @@ dissect_epl_soc(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo, gint of if (epl_tree) { - proto_tree_add_item(epl_tree, hf_epl_soc_nettime, tvb, offset, 8, TRUE); + nettime.secs = tvb_get_letohl(tvb, offset); + nettime.nsecs = tvb_get_letohl(tvb, offset+4); + proto_tree_add_time(epl_tree, hf_epl_soc_nettime, tvb, offset, 8, &nettime); offset += 8; proto_tree_add_item(epl_tree, hf_epl_soc_relativetime, tvb, offset, 8, TRUE); |