aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/endpoint_talkers_ip.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-27 12:10:21 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-08-27 12:10:21 +0000
commitd3562c0480240333a99315699992e3165702a369 (patch)
tree7914be1b9feaa01d92d29eeb5744bb1b9f2df86a /gtk/endpoint_talkers_ip.c
parent982ece89cf2d31d509dfe270578d86c62459c776 (diff)
Updates for the endpoint talkers thing
The table now has a popup menu with Match display filter Selected EP1 <-> EP2 EP1 --> EP2 EP1 <-- EP2 EP1 --> ANY EP1 <-- ANY EP2 --> ANY EP2 <-- ANY Not Selected ... ... Prepare Display Filter ... Self explanatory. Now the bad news. I set the display filter box in the main window and i call redissect_packet which redissects the packet list but the displayfilter does not take or affect the main window until i click the apply button. Some signal needs to be raised to some object me thinks. Please feel free to fix it if you know what is missing. svn path=/trunk/; revision=8279
Diffstat (limited to 'gtk/endpoint_talkers_ip.c')
-rw-r--r--gtk/endpoint_talkers_ip.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk/endpoint_talkers_ip.c b/gtk/endpoint_talkers_ip.c
index c56e63a179..d9a299cb70 100644
--- a/gtk/endpoint_talkers_ip.c
+++ b/gtk/endpoint_talkers_ip.c
@@ -1,7 +1,7 @@
/* endpoint_talkers_ip.c
* endpoint_talkers_ip 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_ip.c,v 1.6 2003/08/26 01:46:22 guy Exp $
+ * $Id: endpoint_talkers_ip.c,v 1.7 2003/08/27 12:10:21 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -99,8 +99,6 @@ ip_talkers_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, void *
return 1;
}
-
-
static void
gtk_ip_talkers_init(char *optarg)
{
@@ -110,6 +108,15 @@ gtk_ip_talkers_init(char *optarg)
GtkWidget *label;
GString *error_string;
char title[256];
+ static char *filter_names[] = {
+ "ip.addr",
+ "ip.src",
+ "ip.dst",
+ NULL,
+ NULL,
+ NULL
+ };
+
if(!strncmp(optarg,"talkers,ip,",11)){
filter=optarg+11;
@@ -138,7 +145,7 @@ gtk_ip_talkers_init(char *optarg)
/* We must display TOP LEVEL Widget before calling init_ett_table() */
gtk_widget_show(ip_talkers->win);
- init_ett_table(&ip_talkers->talkers, vbox, NULL);
+ init_ett_table(&ip_talkers->talkers, vbox, NULL, filter_names);
error_string=register_tap_listener("ip", ip_talkers, filter, ip_talkers_reset, ip_talkers_packet, ip_talkers_draw);
if(error_string){