diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-01-23 19:40:51 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-01-24 03:41:28 +0000 |
commit | bc5a0374bfd162d08834f5f7503bebd33d8ec943 (patch) | |
tree | 6d5be93a3e35c6eb144ce6d2b1d95650b5cbbd86 /epan/dissectors/packet-rtpproxy.c | |
parent | baea677290f84d4e30e86194c79bafef0fdc1ad2 (diff) |
Add the packet number to the packet_info structure, and use it.
That removes most of the uses of the frame number field in the
frame_data structure.
Change-Id: Ie22e4533e87f8360d7c0a61ca6ffb796cc233f22
Reviewed-on: https://code.wireshark.org/review/13509
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-rtpproxy.c')
-rw-r--r-- | epan/dissectors/packet-rtpproxy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rtpproxy.c b/epan/dissectors/packet-rtpproxy.c index 2466a36141..e782a78129 100644 --- a/epan/dissectors/packet-rtpproxy.c +++ b/epan/dissectors/packet-rtpproxy.c @@ -445,13 +445,13 @@ rtpproxy_add_tid(gboolean is_request, tvbuff_t *tvb, packet_info *pinfo, proto_t if (!PINFO_FD_VISITED(pinfo)) { if (is_request){ rtpproxy_info = wmem_new0(wmem_file_scope(), rtpproxy_info_t); - rtpproxy_info->req_frame = PINFO_FD_NUM(pinfo); + rtpproxy_info->req_frame = pinfo->num; rtpproxy_info->req_time = pinfo->abs_ts; wmem_tree_insert_string(rtpproxy_conv->trans, cookie, rtpproxy_info, 0); } else { rtpproxy_info = (rtpproxy_info_t *)wmem_tree_lookup_string(rtpproxy_conv->trans, cookie, 0); if (rtpproxy_info) { - rtpproxy_info->resp_frame = PINFO_FD_NUM(pinfo); + rtpproxy_info->resp_frame = pinfo->num; } } } else { @@ -884,11 +884,11 @@ dissect_rtpproxy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data if (rtp_handle) { /* FIXME tell if isn't a video stream, and setup codec mapping */ if (addr.len) - rtp_add_address(pinfo, &addr, port, 0, "RTPproxy", pinfo->fd->num, 0, NULL); + rtp_add_address(pinfo, &addr, port, 0, "RTPproxy", pinfo->num, 0, NULL); } if (rtcp_handle) { if (addr.len) - rtcp_add_address(pinfo, &addr, port+1, 0, "RTPproxy", pinfo->fd->num); + rtcp_add_address(pinfo, &addr, port+1, 0, "RTPproxy", pinfo->num); } } break; |