aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mgcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-22 19:50:21 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-23 03:50:58 +0000
commit9141bd97001e4a728c88b2bc7507a2f8bd91cc90 (patch)
treef589699cd32e897619dc250c9ec2c891c02f12d0 /epan/dissectors/packet-mgcp.c
parent2fb43f3761f3bc813d85f3771b78a81007283871 (diff)
Add more fields to packet_info structure and use them.
Add fields for the absolute time stamp (and another field for a presence flag for the absolute time stamp) and the packet encapsulation for the packet. This lets us remove the field for the packet encapsulation in the frame_data structure; do so. Change-Id: Ifb910a9a192414e2a53086f3f7b97f39ed36aa39 Reviewed-on: https://code.wireshark.org/review/13499 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-mgcp.c')
-rw-r--r--epan/dissectors/packet-mgcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-mgcp.c b/epan/dissectors/packet-mgcp.c
index ea8d5a9aa4..798b4321ae 100644
--- a/epan/dissectors/packet-mgcp.c
+++ b/epan/dissectors/packet-mgcp.c
@@ -329,7 +329,7 @@ mgcpstat_packet(void *pms, packet_info *pinfo, epan_dissect_t *edt _U_, const vo
else {
ms->time_stats[0].open_req_num--;
/* calculate time delta between request and response */
- nstime_delta(&delta, &pinfo->fd->abs_ts, &mi->req_time);
+ nstime_delta(&delta, &pinfo->abs_ts, &mi->req_time);
time_stat_update(&(ms->time_stats[0].rtd[0]), &delta, pinfo);
@@ -1308,7 +1308,7 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, packet_info *pinfo, proto_tree
"This is a response to a request in frame %u",
mgcp_call->req_num);
PROTO_ITEM_SET_GENERATED(item);
- nstime_delta(&delta, &pinfo->fd->abs_ts, &mgcp_call->req_time);
+ nstime_delta(&delta, &pinfo->abs_ts, &mgcp_call->req_time);
item = proto_tree_add_time(tree, hf_mgcp_time, tvb, 0, 0, &delta);
PROTO_ITEM_SET_GENERATED(item);
}
@@ -1452,7 +1452,7 @@ static void dissect_mgcp_firstline(tvbuff_t *tvb, packet_info *pinfo, proto_tree
mgcp_call->rsp_num = 0;
mgcp_call->transid = mi->transid;
mgcp_call->responded = FALSE;
- mgcp_call->req_time=pinfo->fd->abs_ts;
+ mgcp_call->req_time=pinfo->abs_ts;
g_strlcpy(mgcp_call->code, mi->code, 5);
/* Store it */