aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-04 22:15:39 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-04 22:15:39 +0000
commit756b43584a0ff6fb5a3e469f6325b15c037d44df (patch)
treee6a5d11d2cc137391ca3d097eb007e725c1c607f /file.c
parent159eb5113938b38db11a5da84af69dace1e92667 (diff)
Enable the tap feature for ethereal as well. (will only update in real time for the gtk2 port though)
svn path=/trunk/; revision=6182
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/file.c b/file.c
index 0fb3f8c56a..b226c4aab4 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.288 2002/08/31 09:55:18 oabad Exp $
+ * $Id: file.c,v 1.289 2002/09/04 22:15:39 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -101,6 +101,7 @@
#include "gtk2/colors.h"
#endif
#include <epan/epan_dissect.h>
+#include "tap.h"
extern GtkWidget *packet_list, *byte_nb_ptr, *tree_view;
@@ -340,6 +341,7 @@ read_cap_file(capture_file *cf, int *err)
GTimeVal start_time;
gchar status_str[100];
+ reset_tap_listeners();
name_ptr = get_basename(cf->filename);
msg_len = strlen(name_ptr) + strlen(load_fmt) + 2;
@@ -685,6 +687,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
firstusec = fdata->abs_usecs;
}
+ tap_queue_init(pseudo_header, buf, fdata);
/* If either
we have a display filter and are re-applying it;
@@ -707,7 +710,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf,
filter_list_prime_edt(edt);
}
epan_dissect_run(edt, pseudo_header, buf, fdata, &cf->cinfo);
-
+ tap_push_tapped_queue();
/* If we have a display filter, apply it if we're refiltering, otherwise
leave the "passed_dfilter" flag alone.
@@ -958,6 +961,7 @@ rescan_packets(capture_file *cf, const char *action, const char *action_item,
GTimeVal start_time;
gchar status_str[100];
+ reset_tap_listeners();
/* Which frame, if any, is the currently selected frame?
XXX - should the selected frame or the focus frame be the "current"
frame, that frame being the one from which "Find Frame" searches