From aa6d5ee1a7f04c81262db1f6fb68ccd2f11ed65a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 26 Sep 2018 13:33:25 -0700 Subject: 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 --- epan/dissectors/packet-cql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-cql.c') diff --git a/epan/dissectors/packet-cql.c b/epan/dissectors/packet-cql.c index c76df9aa07..2841d0e5a6 100644 --- a/epan/dissectors/packet-cql.c +++ b/epan/dissectors/packet-cql.c @@ -488,7 +488,7 @@ cql_transaction_add_request(cql_conversation_type* conv, trans->req_frame = pinfo->fd->num; } trans->rep_frame = 0; - trans->req_time = pinfo->fd->abs_ts; + trans->req_time = pinfo->abs_ts; wmem_list_append(list, (void *)trans); wmem_map_insert(conv->streams, GINT_TO_POINTER(stream), (void*)list); @@ -1071,7 +1071,7 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi ti = proto_tree_add_uint(cql_tree, hf_cql_response_to, raw_tvb, 0, 0, cql_trans->req_frame); PROTO_ITEM_SET_GENERATED(ti); - nstime_delta(&ns, &pinfo->fd->abs_ts, &cql_trans->req_time); + nstime_delta(&ns, &pinfo->abs_ts, &cql_trans->req_time); ti = proto_tree_add_time(cql_tree, hf_cql_response_time, raw_tvb, 0, 0, &ns); PROTO_ITEM_SET_GENERATED(ti); } -- cgit v1.2.3