diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-27 12:10:21 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-08-27 12:10:21 +0000 |
commit | d3562c0480240333a99315699992e3165702a369 (patch) | |
tree | 7914be1b9feaa01d92d29eeb5744bb1b9f2df86a /gtk/endpoint_talkers_eth.c | |
parent | 982ece89cf2d31d509dfe270578d86c62459c776 (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_eth.c')
-rw-r--r-- | gtk/endpoint_talkers_eth.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk/endpoint_talkers_eth.c b/gtk/endpoint_talkers_eth.c index 1b32124d39..e65af4314f 100644 --- a/gtk/endpoint_talkers_eth.c +++ b/gtk/endpoint_talkers_eth.c @@ -1,7 +1,7 @@ /* endpoint_talkers_eth.c * endpoint_talkers_eth 2003 Ronnie Sahlberg * - * $Id: endpoint_talkers_eth.c,v 1.5 2003/08/26 01:46:22 guy Exp $ + * $Id: endpoint_talkers_eth.c,v 1.6 2003/08/27 12:10:21 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -111,6 +111,14 @@ gtk_eth_talkers_init(char *optarg) GtkWidget *label; GString *error_string; char title[256]; + static char *filter_names[] = { + "eth.addr", + "eth.src", + "eth.dst", + NULL, + NULL, + NULL + }; if(!strncmp(optarg,"talkers,eth,",12)){ filter=optarg+12; @@ -139,7 +147,7 @@ gtk_eth_talkers_init(char *optarg) /* We must display TOP LEVEL Widget before calling init_ett_table() */ gtk_widget_show(eth_talkers->win); - init_ett_table(ð_talkers->talkers, vbox, NULL); + init_ett_table(ð_talkers->talkers, vbox, NULL, filter_names); error_string=register_tap_listener("eth", eth_talkers, filter, eth_talkers_reset, eth_talkers_packet, eth_talkers_draw); if(error_string){ |