aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sctp.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-sctp.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-sctp.c')
-rw-r--r--epan/dissectors/packet-sctp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-sctp.c b/epan/dissectors/packet-sctp.c
index 1cd86dcbc4..1a0380093e 100644
--- a/epan/dissectors/packet-sctp.c
+++ b/epan/dissectors/packet-sctp.c
@@ -1165,7 +1165,7 @@ sctp_tsn(packet_info *pinfo, tvbuff_t *tvb, proto_item *tsn_item,
return(is_retransmission);
- framenum = PINFO_FD_NUM(pinfo);
+ framenum = pinfo->num;
/* If we're dissecting for a read filter in the GUI [tshark assigns
* frame numbers before running the read filter], don't do the TSN
@@ -1235,7 +1235,7 @@ ack_tree(sctp_tsn_t *t, proto_tree *acks_tree,
proto_item *pi;
proto_tree *pt;
nstime_t rtt;
- guint framenum = pinfo->fd->num;
+ guint framenum = pinfo->num;
if ( t->ack.framenum == framenum ) {
nstime_delta( &rtt, &(t->ack.ts), &(t->first_transmit.ts) );
@@ -1264,7 +1264,7 @@ sctp_ack(packet_info *pinfo, tvbuff_t *tvb, proto_tree *acks_tree,
if (!h || !h->peer)
return;
- framenum = PINFO_FD_NUM(pinfo);
+ framenum = pinfo->num;
/* printf("%.6d ACK: %p->%p [%u] \n",framenum,h,h->peer,reltsn); */
@@ -1310,7 +1310,7 @@ sctp_ack_block(packet_info *pinfo, sctp_half_assoc_t *h, tvbuff_t *tvb,
if ( !h || !h->peer || ! h->peer->started )
return;
- framenum = PINFO_FD_NUM(pinfo);
+ framenum = pinfo->num;
rel_end = RELTSNACK(tsn_end);
if (tsn_start_ptr) {
@@ -2743,7 +2743,7 @@ add_fragment(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 tsn,
/* this fragment is already known.
* compare frame number to check if it's a duplicate
*/
- if (fragment->frame_num == pinfo->fd->num) {
+ if (fragment->frame_num == pinfo->num) {
return fragment;
} else {
/* There already is a fragment having the same ports, v_tag,
@@ -2767,7 +2767,7 @@ add_fragment(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 tsn,
/* create new fragment */
fragment = (sctp_fragment *)g_malloc (sizeof (sctp_fragment));
- fragment->frame_num = pinfo->fd->num;
+ fragment->frame_num = pinfo->num;
fragment->tsn = tsn;
fragment->len = tvb_captured_length(tvb);
fragment->ppi = msg->ppi;