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_tcpip.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_tcpip.c')
-rw-r--r-- | gtk/endpoint_talkers_tcpip.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gtk/endpoint_talkers_tcpip.c b/gtk/endpoint_talkers_tcpip.c index a4c49eb7af..f7bfaafe4c 100644 --- a/gtk/endpoint_talkers_tcpip.c +++ b/gtk/endpoint_talkers_tcpip.c @@ -1,7 +1,7 @@ /* endpoint_talkers_tcpip.c * endpoint_talkers_tcpip 2003 Ronnie Sahlberg * - * $Id: endpoint_talkers_tcpip.c,v 1.7 2003/08/26 01:46:23 guy Exp $ + * $Id: endpoint_talkers_tcpip.c,v 1.8 2003/08/27 12:10:21 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -127,6 +127,17 @@ gtk_tcpip_talkers_init(char *optarg) GtkWidget *label; GString *error_string; char title[256]; + /* XXX crap, once again we get visibility of the type of transport */ + /* XXX fixme or fix the api to make ipv6 work */ + static char *filter_names[] = { + "ip.addr", + "ip.src", + "ip.dst", + "tcp.port", + "tcp.srcport", + "tcp.dstport" + }; + if(!strncmp(optarg,"talkers,tcp,",12)){ filter=optarg+12; @@ -155,7 +166,7 @@ gtk_tcpip_talkers_init(char *optarg) /* We must display TOP LEVEL Widget before calling init_ett_table() */ gtk_widget_show(tcpip_talkers->win); - init_ett_table(&tcpip_talkers->talkers, vbox, tcpip_port_to_str); + init_ett_table(&tcpip_talkers->talkers, vbox, tcpip_port_to_str, filter_names); error_string=register_tap_listener("tcp", tcpip_talkers, filter, tcpip_talkers_reset, tcpip_talkers_packet, tcpip_talkers_draw); if(error_string){ |