aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cql.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-cql.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-cql.c')
-rw-r--r--epan/dissectors/packet-cql.c4
1 files changed, 2 insertions, 2 deletions
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);
}