diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-27 17:14:42 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-27 17:14:42 +0000 |
commit | d935a280e35055222e49299c47ecabdd820c5462 (patch) | |
tree | d5f4dfa48e46083ae9e8dd99488d52d19e6f3f24 /file.c | |
parent | 0d2e02954f2452ca05f8f884044380077a941dd8 (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 'file.c')
-rw-r--r-- | file.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -1081,17 +1081,6 @@ void cf_set_rfcode(capture_file *cf, dfilter_t *rfcode) cf->rfcode = rfcode; } -static void -find_and_mark_frame_depended_upon(gpointer data, gpointer user_data) -{ - frame_data *dependent_fd; - guint32 dependent_frame = GPOINTER_TO_UINT(data); - capture_file *cf = (capture_file *)user_data; - - dependent_fd = frame_data_sequence_find(cf->frames, dependent_frame); - dependent_fd->flags.dependent_of_displayed = 1; -} - static int add_packet_to_packet_list(frame_data *fdata, capture_file *cf, dfilter_t *dfcode, gboolean create_proto_tree, column_info *cinfo, @@ -1123,7 +1112,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, * (potentially not displayed) frames. Find those frames and mark them * as depended upon. */ - g_slist_foreach(edt.pi.dependent_frames, find_and_mark_frame_depended_upon, cf); + g_slist_foreach(edt.pi.dependent_frames, find_and_mark_frame_depended_upon, cf->frames); } } else fdata->flags.passed_dfilter = 1; |