aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtpv2.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-23 19:40:51 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-24 03:41:28 +0000
commitbc5a0374bfd162d08834f5f7503bebd33d8ec943 (patch)
tree6d5be93a3e35c6eb144ce6d2b1d95650b5cbbd86 /epan/dissectors/packet-gtpv2.c
parentbaea677290f84d4e30e86194c79bafef0fdc1ad2 (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-gtpv2.c')
-rw-r--r--epan/dissectors/packet-gtpv2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index 41f5a8d2c4..807614b0e5 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -6066,7 +6066,7 @@ gtpv2_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gin
case GTPV2_DELETE_BEARER_REQUEST:
case GTPV2_DELETE_SESSION_REQUEST:
gcr.is_request = TRUE;
- gcr.req_frame = pinfo->fd->num;
+ gcr.req_frame = pinfo->num;
gcr.rep_frame = 0;
break;
case GTPV2_CREATE_SESSION_RESPONSE:
@@ -6077,7 +6077,7 @@ gtpv2_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gin
case GTPV2_DELETE_SESSION_RESPONSE:
gcr.is_request = FALSE;
gcr.req_frame = 0;
- gcr.rep_frame = pinfo->fd->num;
+ gcr.rep_frame = pinfo->num;
break;
default:
gcr.is_request = FALSE;
@@ -6110,7 +6110,7 @@ gtpv2_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gin
gcrp = wmem_new(wmem_file_scope(), gtpv2_msg_hash_t);
}
gcrp->seq_nr = seq_nr;
- gcrp->req_frame = pinfo->fd->num;
+ gcrp->req_frame = pinfo->num;
gcrp->req_time = pinfo->abs_ts;
gcrp->rep_frame = 0;
gcrp->msgtype = msgtype;
@@ -6130,7 +6130,7 @@ gtpv2_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gin
if (gcrp) {
if (!gcrp->rep_frame) {
wmem_map_remove(gtpv2_info->unmatched, gcrp);
- gcrp->rep_frame = pinfo->fd->num;
+ gcrp->rep_frame = pinfo->num;
gcrp->is_request = FALSE;
wmem_map_insert(gtpv2_info->matched, gcrp, gcrp);
}