aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-erf.c
diff options
context:
space:
mode:
authorSake Blok <sake@euronet.nl>2022-02-27 15:35:58 +0100
committerGerald Combs <gerald@wireshark.org>2022-03-06 23:43:03 +0000
commitbe915d7374be9d64b6fd85819fcd98b300f511af (patch)
tree18a4b3cc42ee5311a55df6e16b6cf9c7c672bfac /epan/dissectors/packet-erf.c
parent1d2a8bff3c035be938bbc2c814cd1417720ff09c (diff)
epan: Allow nested dependent packets
Save all dependent frames when there are multiple levels of reassembly.
Diffstat (limited to 'epan/dissectors/packet-erf.c')
-rw-r--r--epan/dissectors/packet-erf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-erf.c b/epan/dissectors/packet-erf.c
index 7784534409..6c227d2ffd 100644
--- a/epan/dissectors/packet-erf.c
+++ b/epan/dissectors/packet-erf.c
@@ -1879,7 +1879,7 @@ static void dissect_host_anchor_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree
proto_item_set_generated(pi);
/* XXX: Need to do this each time because pinfo is discarded. Filtering does not reset visited as it does not do a full redissect.
We also might not catch all frames in the first pass (e.g. comment after record). */
- mark_frame_as_depended_upon(pinfo, anchored_info->frame_num);
+ mark_frame_as_depended_upon(pinfo->fd, anchored_info->frame_num);
}
frame = wmem_list_frame_next(frame);
}
@@ -1925,12 +1925,12 @@ dissect_host_id_source_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, g
pi = proto_tree_add_uint(hostid_tree, hf_erf_source_next, tvb, 0, 0, fnum_next);
proto_item_set_generated(pi);
/* XXX: Save the surrounding nearest periodic records when we do a filtered save so we keep native ERF metadata */
- mark_frame_as_depended_upon(pinfo, fnum_next);
+ mark_frame_as_depended_upon(pinfo->fd, fnum_next);
}
if (fnum != G_MAXUINT32) {
pi = proto_tree_add_uint(hostid_tree, hf_erf_source_prev, tvb, 0, 0, fnum);
proto_item_set_generated(pi);
- mark_frame_as_depended_upon(pinfo, fnum);
+ mark_frame_as_depended_upon(pinfo->fd, fnum);
}
}
}