diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-07-01 20:32:52 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-07-02 03:33:31 +0000 |
commit | a7961382833ba83c614aa435060ebc50280f359d (patch) | |
tree | ffaf2049549b7be622224f9b532e22a5ec41afb0 /epan/dissectors/packet-netlink-netfilter.c | |
parent | e9dc611e4fbbd4c4f86dc546c11c096fd0870af0 (diff) |
Use proto_tree_add_item() for a number of time values.
Change-Id: I862a7870d335f8b0b57d13e2981a8bb1a02b2726
Reviewed-on: https://code.wireshark.org/review/28563
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-netlink-netfilter.c')
-rw-r--r-- | epan/dissectors/packet-netlink-netfilter.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-netlink-netfilter.c b/epan/dissectors/packet-netlink-netfilter.c index 4635c02e5e..dc4743e3f5 100644 --- a/epan/dissectors/packet-netlink-netfilter.c +++ b/epan/dissectors/packet-netlink-netfilter.c @@ -1307,11 +1307,7 @@ dissect_nfq_attrs(tvbuff_t *tvb, void *data, proto_tree *tree, int nla_type, int case WS_NFQA_TIMESTAMP: if (len == 16) { - nstime_t ts; - - ts.secs = (time_t)tvb_get_ntoh64(tvb, offset); - ts.nsecs = (int)tvb_get_ntoh64(tvb, offset + 8) * 1000; - proto_tree_add_time(tree, &hfi_nfq_timestamp, tvb, offset, 16, &ts); + proto_tree_add_item(tree, &hfi_nfq_timestamp, tvb, offset, 16, ENC_TIME_TIMESPEC|ENC_BIG_ENDIAN); offset += 16; } break; |