aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-09-26 13:33:25 -0700
committerGuy Harris <guy@alum.mit.edu>2018-09-26 20:34:21 +0000
commitaa6d5ee1a7f04c81262db1f6fb68ccd2f11ed65a (patch)
tree746df54cde1e9467a0c7919cdff7db304770ed1e /epan/dissectors/packet-coap.c
parent854cfe53efe44080609c78053ecfb2342ad84a08 (diff)
Use the time stamps in the packet_info structure, not the frame_data structure.
In the long run, we'd like to remove the time stamp from the frame_data structure, as, in Wireshark, and in TShark in two-pass mode, there's one allocated for every frame in the file, and shrinking the size of that structure reduces the memory usage. This removes one obstacle to that. Change-Id: Ia8f87522cd974555c57e0ac1e742b097e8b0f2fc Reviewed-on: https://code.wireshark.org/review/29881 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r--epan/dissectors/packet-coap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index 5e212c5fd8..b034042c32 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -1102,7 +1102,7 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
coap_trans = wmem_new0(wmem_file_scope(), coap_transaction);
coap_trans->req_frame = pinfo->num;
coap_trans->rsp_frame = 0;
- coap_trans->req_time = pinfo->fd->abs_ts;
+ coap_trans->req_time = pinfo->abs_ts;
if (coinfo->uri_str_strbuf) {
/* Store the URI into CoAP transaction info */
coap_trans->uri_str_strbuf = wmem_strbuf_new(wmem_file_scope(), wmem_strbuf_get_str(coinfo->uri_str_strbuf));
@@ -1183,7 +1183,7 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
tvb, 0, 0, coap_trans->req_frame);
PROTO_ITEM_SET_GENERATED(it);
- nstime_delta(&ns, &pinfo->fd->abs_ts, &coap_trans->req_time);
+ nstime_delta(&ns, &pinfo->abs_ts, &coap_trans->req_time);
it = proto_tree_add_time(coap_tree, hf_coap_response_time, tvb, 0, 0, &ns);
PROTO_ITEM_SET_GENERATED(it);
}