aboutsummaryrefslogtreecommitdiffstats
path: root/frame_data_sequence.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-27 17:14:42 +0000
committerEvan Huus <eapache@gmail.com>2013-03-27 17:14:42 +0000
commitd935a280e35055222e49299c47ecabdd820c5462 (patch)
treed5f4dfa48e46083ae9e8dd99488d52d19e6f3f24 /frame_data_sequence.c
parent0d2e02954f2452ca05f8f884044380077a941dd8 (diff)
From Hadriel Kaplan via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8223
Add a 2-pass display-filter flag to tshark so that reassembly and other forward- looking dissections can be used with filters. It's a bit of a hack, but this entire area of 2-pass analysis etc. is a giant pile of hacks to begin with and needs cleaning up. For now just having this feature is a big enough win. svn path=/trunk/; revision=48589
Diffstat (limited to 'frame_data_sequence.c')
-rw-r--r--frame_data_sequence.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/frame_data_sequence.c b/frame_data_sequence.c
index b2ee96ddf9..bbc5ee163e 100644
--- a/frame_data_sequence.c
+++ b/frame_data_sequence.c
@@ -311,6 +311,19 @@ free_frame_data_sequence(frame_data_sequence *fds)
g_free(fds);
}
+void
+find_and_mark_frame_depended_upon(gpointer data, gpointer user_data)
+{
+ frame_data *dependent_fd;
+ guint32 dependent_frame = GPOINTER_TO_UINT(data);
+ frame_data_sequence *frames = (frame_data_sequence *)user_data;
+
+ if (dependent_frame && frames) {
+ dependent_fd = frame_data_sequence_find(frames, dependent_frame);
+ dependent_fd->flags.dependent_of_displayed = 1;
+ }
+}
+
/*
* Editor modelines - http://www.wireshark.org/tools/modelines.html
*