aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/endpoint_talkers_fc.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-09-04 11:07:51 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-09-04 11:07:51 +0000
commit188a4e8d81091e751546873933143be5fe2a2aee (patch)
treeacb9e71f5e2a498e0e113be21ac14942bb48a202 /gtk/endpoint_talkers_fc.c
parent4f01e65223440a194410a9dd0f6a06403ca306b1 (diff)
Uglify endpoint_talkers_table.c
make it know how to build the filter strings, address and port hf_ fields properly so TCP and UDP works and is agnostic on whether ipv4 or ipv6 is used as transport svn path=/trunk/; revision=8368
Diffstat (limited to 'gtk/endpoint_talkers_fc.c')
-rw-r--r--gtk/endpoint_talkers_fc.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gtk/endpoint_talkers_fc.c b/gtk/endpoint_talkers_fc.c
index ce8e2c7482..aab05a6879 100644
--- a/gtk/endpoint_talkers_fc.c
+++ b/gtk/endpoint_talkers_fc.c
@@ -1,7 +1,7 @@
/* endpoint_talkers_fc.c
* endpoint_talkers_fc 2003 Ronnie Sahlberg
*
- * $Id: endpoint_talkers_fc.c,v 1.11 2003/09/02 08:27:25 sahlberg Exp $
+ * $Id: endpoint_talkers_fc.c,v 1.12 2003/09/04 11:07:50 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -54,7 +54,7 @@ fc_talkers_packet(void *pit, packet_info *pinfo, epan_dissect_t *edt _U_, void *
endpoints_table *talkers=(endpoints_table *)pit;
fc_hdr *fchdr=vip;
- add_ett_table_data(talkers, &fchdr->s_id, &fchdr->d_id, 0, 0, 1, pinfo->fd->pkt_len);
+ add_ett_table_data(talkers, &fchdr->s_id, &fchdr->d_id, 0, 0, 1, pinfo->fd->pkt_len, SAT_NONE, PT_NONE);
return 1;
}
@@ -70,14 +70,6 @@ gtk_fc_talkers_init(char *optarg)
GtkWidget *label;
GString *error_string;
char title[256];
- static char *filter_names[] = {
- "fc.id",
- "fc.s_id",
- "fc.d_id",
- NULL,
- NULL,
- NULL
- };
if(!strncmp(optarg,"talkers,fc,",11)){
filter=optarg+11;
@@ -107,7 +99,7 @@ gtk_fc_talkers_init(char *optarg)
/* We must display TOP LEVEL Widget before calling init_ett_table() */
gtk_widget_show(talkers->win);
- init_ett_table(talkers, vbox, NULL, filter_names);
+ init_ett_table(talkers, vbox, TRUE);
error_string=register_tap_listener("fc", talkers, filter, (void *)reset_ett_table_data, fc_talkers_packet, (void *)draw_ett_table_data);
if(error_string){