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-glusterfs.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-glusterfs.c')
-rw-r--r-- | epan/dissectors/packet-glusterfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-glusterfs.c b/epan/dissectors/packet-glusterfs.c index 5723a7decf..25b2186b54 100644 --- a/epan/dissectors/packet-glusterfs.c +++ b/epan/dissectors/packet-glusterfs.c @@ -285,17 +285,17 @@ glusterfs_rpc_dissect_gf_iatt(proto_tree *tree, tvbuff_t *tvb, int hfindex, if (tree) proto_tree_add_item(iatt_tree, hf_glusterfs_ia_atime, tvb, - offset, 8, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN); + offset, 8, ENC_TIME_SECS_NSECS|ENC_BIG_ENDIAN); offset += 8; if (tree) proto_tree_add_item(iatt_tree, hf_glusterfs_ia_mtime, tvb, - offset, 8, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN); + offset, 8, ENC_TIME_SECS_NSECS|ENC_BIG_ENDIAN); offset += 8; if (tree) proto_tree_add_item(iatt_tree, hf_glusterfs_ia_ctime, tvb, - offset, 8, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN); + offset, 8, ENC_TIME_SECS_NSECS|ENC_BIG_ENDIAN); offset += 8; proto_item_set_len (iatt_item, offset - start_offset); |