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-epl.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-epl.c')
-rw-r--r-- | epan/dissectors/packet-epl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-epl.c b/epan/dissectors/packet-epl.c index 45143d1d9f..cb94e2afc9 100644 --- a/epan/dissectors/packet-epl.c +++ b/epan/dissectors/packet-epl.c @@ -1696,7 +1696,7 @@ static const struct epl_datatype { { "Time_of_Day", &hf_epl_od_time, ENC_NA }, { "Time_Diff", &hf_epl_od_time_difference, ENC_NA }, #endif - { "NETTIME", &hf_epl_od_time, ENC_TIME_TIMESPEC, 8 }, + { "NETTIME", &hf_epl_od_time, ENC_TIME_SECS_NSECS, 8 }, { 0, 0, 0, 0 } }; @@ -2766,10 +2766,10 @@ dissect_epl_soc(proto_tree *epl_tree, tvbuff_t *tvb, packet_info *pinfo, gint of ((EPL_SOC_MC_MASK & flags) >> 7), ((EPL_SOC_PS_MASK & flags) >> 6)); } - proto_tree_add_item(epl_tree, hf_epl_soc_nettime, tvb, offset, 8, ENC_TIME_TIMESPEC|ENC_LITTLE_ENDIAN); + proto_tree_add_item(epl_tree, hf_epl_soc_nettime, tvb, offset, 8, ENC_TIME_SECS_NSECS|ENC_LITTLE_ENDIAN); offset += 8; - proto_tree_add_item(epl_tree, hf_epl_soc_relativetime, tvb, offset, 8, ENC_TIME_TIMESPEC|ENC_LITTLE_ENDIAN); + proto_tree_add_item(epl_tree, hf_epl_soc_relativetime, tvb, offset, 8, ENC_TIME_SECS_NSECS|ENC_LITTLE_ENDIAN); offset += 8; return offset; |