diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-01 21:08:41 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-02 04:09:21 +0000 |
commit | 1075054a1053bf6b4cac2f3ef10168618fc9594e (patch) | |
tree | df12650487da24e9bc4567ad12e7990a23218e8f /epan/dissectors/packet-gsmtap_log.c | |
parent | a7961382833ba83c614aa435060ebc50280f359d (diff) |
Add new encoding names for seconds/{micro,nano}second time stamps.
Add ENC_TIME_SECS_NSECS and ENC_TIME_SECS_USECS; they make it more
explicit (especially to those not familiar with UN*X data types) what
the representation is, allow for ENC_TIME_SECS_MSECS etc. if they're
needed, and match names such as ENC_TIME_SECS and ENC_TIME_MSECS.
Change-Id: I6ab36fb4da70563587141cd65ffff8523477b0c4
Reviewed-on: https://code.wireshark.org/review/28564
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-gsmtap_log.c')
-rw-r--r-- | epan/dissectors/packet-gsmtap_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gsmtap_log.c b/epan/dissectors/packet-gsmtap_log.c index d399a884e3..93bb8fdcfe 100644 --- a/epan/dissectors/packet-gsmtap_log.c +++ b/epan/dissectors/packet-gsmtap_log.c @@ -56,7 +56,7 @@ dissect_gsmtap_log(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * d ti = proto_tree_add_item(tree, proto_gsmtap_log, tvb, 0, -1, ENC_NA); log_tree = proto_item_add_subtree(ti, ett_gsmtap_log); - proto_tree_add_item(log_tree, hf_log_ts, tvb, offset, 8, ENC_TIME_TIMEVAL|ENC_BIG_ENDIAN); + proto_tree_add_item(log_tree, hf_log_ts, tvb, offset, 8, ENC_TIME_SECS_USECS|ENC_BIG_ENDIAN); offset += 8; proto_tree_add_item_ret_string(log_tree, hf_log_ident, tvb, offset, 16, ENC_NA, wmem_packet_scope(), &log_ident); offset += 16; |