statistics menu redesigned, now looking more like the former menu,
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Feb 2004 19:19:39 +0000 (19:19 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 23 Feb 2004 19:19:39 +0000 (19:19 +0000)
items now again grouped by function, not by ISO layer

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10202 f5534014-38df-0310-8fa8-9805f1628bb7

42 files changed:
gtk/Makefile.common
gtk/ansi_a_stat.c
gtk/ansi_map_stat.c
gtk/bootp_stat.c
gtk/dcerpc_stat.c
gtk/endpoint_talkers_eth.c
gtk/endpoint_talkers_fc.c
gtk/endpoint_talkers_fddi.c
gtk/endpoint_talkers_ip.c
gtk/endpoint_talkers_ipx.c
gtk/endpoint_talkers_tcpip.c
gtk/endpoint_talkers_tr.c
gtk/endpoint_talkers_udpip.c
gtk/fc_stat.c
gtk/follow_dlg.c
gtk/gsm_a_stat.c
gtk/gsm_map_stat.c
gtk/h225_counter.c
gtk/h225_ras_srt.c
gtk/hostlist_eth.c
gtk/hostlist_fc.c
gtk/hostlist_fddi.c
gtk/hostlist_ip.c
gtk/hostlist_ipx.c
gtk/hostlist_tcpip.c
gtk/hostlist_tr.c
gtk/hostlist_udpip.c
gtk/http_stat.c
gtk/io_stat.c
gtk/isup_stat.c
gtk/ldap_stat.c
gtk/main.c
gtk/menu.c
gtk/mgcp_stat.c
gtk/rpc_progs.c
gtk/rpc_stat.c
gtk/rtp_analysis.c
gtk/rtp_stream_dlg.c
gtk/smb_stat.c
gtk/tap_menu.h
gtk/tcp_graph.c
gtk/wsp_stat.c

index c3d5bb88aa24ceea4980bea168d38acb59962b32..da9a90113eac3c4a39190d8670aedf3e5fba7c38 100644 (file)
@@ -3,7 +3,7 @@
 #     a) common to both files and
 #     b) portable between both files
 #
-# $Id: Makefile.common,v 1.7 2004/02/22 18:44:02 ulfl Exp $
+# $Id: Makefile.common,v 1.8 2004/02/23 19:19:38 ulfl Exp $
 #
 # Ethereal - Network traffic analyzer
 # By Gerald Combs <gerald@ethereal.com>
@@ -46,6 +46,7 @@ ETHEREAL_GTK_SRC = \
        file_dlg.c      \
        filter_prefs.c  \
        find_dlg.c      \
+       follow_dlg.c    \
        goto_dlg.c      \
        gtk_stat_util.c \
        gui_prefs.c     \
@@ -90,7 +91,6 @@ ETHEREAL_TAP_SRC = \
        endpoint_talkers_tr.c   \
        endpoint_talkers_udpip.c        \
        fc_stat.c       \
-       follow_dlg.c    \
        gsm_a_stat.c    \
        gsm_map_stat.c  \
        h225_counter.c  \
index 78f5157753ebbca829037b0f5ee1fcea21c5baec..59fed4e218c7115c832cf4f6d41de2cb2c07eb65 100644 (file)
@@ -5,7 +5,7 @@
  *
  * MUCH code modified from service_response_time_table.c.
  *
- * $Id: ansi_a_stat.c,v 1.14 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: ansi_a_stat.c,v 1.15 2004/02/23 19:19:35 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -535,8 +535,8 @@ register_tap_listener_gtkansi_a_stat(void)
        exit(1);
     }
 
-    register_tap_menu_item("ANSI/A-Interface BSMAP", REGISTER_TAP_LAYER_APPLICATION
+    register_tap_menu_item("ANSI/A-Interface BSMAP", REGISTER_TAP_GROUP_NONE
         ansi_a_stat_gtk_bsmap_cb, NULL, NULL ,NULL);
-    register_tap_menu_item("ANSI/A-Interface DTAP", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("ANSI/A-Interface DTAP", REGISTER_TAP_GROUP_NONE,
         ansi_a_stat_gtk_dtap_cb, NULL, NULL ,NULL);
 }
index b2965723b4cfa6c6217df063620859d8024113d8..3a276cfee4dee03a15b5b0ca3ca2efcc0ac1c07a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * MUCH code modified from service_response_time_table.c.
  *
- * $Id: ansi_map_stat.c,v 1.17 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: ansi_map_stat.c,v 1.18 2004/02/23 19:19:35 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -468,6 +468,6 @@ register_tap_listener_gtkansi_map_stat(void)
        exit(1);
     }
 
-    register_tap_menu_item("ANSI/MAP Operation", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("ANSI/MAP Operation", REGISTER_TAP_GROUP_NONE,
         ansi_map_stat_gtk_cb, NULL, NULL, NULL);
 }
index cd55b086f4837f8367eb0c983fe8f8d4e71436ef..9d248917f64de0827f621a66c3ad13a7395480d0 100644 (file)
@@ -1,7 +1,7 @@
 /* bootp_stat.c
  * boop_stat   2003 Jean-Michel FAYARD
  *
- * $Id: bootp_stat.c,v 1.21 2004/02/22 21:35:57 ulfl Exp $
+ * $Id: bootp_stat.c,v 1.22 2004/02/23 19:19:35 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -358,6 +358,6 @@ register_tap_listener_gtkdhcpstat(void)
 {
        register_ethereal_tap("bootp,stat,", gtk_dhcpstat_init);
 
-       register_tap_menu_item("BOOTP-DHCP (Statistics)", REGISTER_TAP_LAYER_NETWORK,
+       register_tap_menu_item("BOOTP-DHCP", REGISTER_TAP_GROUP_NONE,
            gtk_dhcpstat_cb, NULL, NULL, NULL);
 }
index 3b08c7d1e328e2006af4f49180ba580e8b8b1eef..a044451cdf222414e0dbccde19f357bbad4a53cb 100644 (file)
@@ -1,7 +1,7 @@
 /* dcerpc_stat.c
  * dcerpc_stat   2002 Ronnie Sahlberg
  *
- * $Id: dcerpc_stat.c,v 1.50 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: dcerpc_stat.c,v 1.51 2004/02/23 19:19:35 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -677,6 +677,6 @@ register_tap_listener_gtkdcerpcstat(void)
 {
        register_ethereal_tap("dcerpc,srt,", gtk_dcerpcstat_init);
 
-       register_tap_menu_item("DCE-RPC (Service Response Time...)", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("DCE-RPC...", REGISTER_TAP_GROUP_RESPONSE_TIME,
            gtk_dcerpcstat_cb, NULL, NULL, NULL);
 }
index 0ee33796c9f6e18e89592b21a56803c787c2901c..bca9b2fa2b287c865a69e697bff0b4f76c1ec110 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_eth.c
  * endpoint_talkers_eth   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_eth.c,v 1.23 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_eth.c,v 1.24 2004/02/23 19:19:35 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_eth_talkers(void)
 {
        register_ethereal_tap("conv,eth", gtk_eth_talkers_init);
 
-       register_tap_menu_item("Ethernet/Conversation List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Ethernet", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_eth_endpoints_cb, NULL, NULL, NULL);
 }
 
index 098e3d09d701bb4573d1dd3cb565aa25dcadf51e..d3cc831c9e687dc431de529cd97710dcd80b2f0b 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_fc.c
  * endpoint_talkers_fc   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_fc.c,v 1.23 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_fc.c,v 1.24 2004/02/23 19:19:35 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_fc_talkers(void)
 {
        register_ethereal_tap("conv,fc", gtk_fc_talkers_init);
 
-       register_tap_menu_item("Fibre Channel/Conversation List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Fibre Channel", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_fc_endpoints_cb, NULL, NULL, NULL);
 }
 
index 4bdab82a76bc20f754dff67a785749a1bf5da95b..aa3df01c2762c3273fb464f00c5e52d22701a014 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_fddi.c
  * endpoint_talkers_fddi   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_fddi.c,v 1.18 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_fddi.c,v 1.19 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_fddi_talkers(void)
 {
        register_ethereal_tap("conv,fddi", gtk_fddi_talkers_init);
 
-       register_tap_menu_item("FDDI/Conversation List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("FDDI", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_fddi_endpoints_cb, NULL, NULL, NULL);
 }
 
index 15448964bed6d88c270c1963bb0a6693ca253557..f315d4b638bf7904eba5ed2ae38a1bdf7a63ab5b 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_ip.c
  * endpoint_talkers_ip   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_ip.c,v 1.24 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_ip.c,v 1.25 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -79,7 +79,7 @@ register_tap_listener_ip_talkers(void)
 {
        register_ethereal_tap("conv,ip", gtk_ip_talkers_init);
 
-       register_tap_menu_item("IP/Conversation List (IPv4)", REGISTER_TAP_LAYER_NETWORK,
+       register_tap_menu_item("IPv4", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_ip_endpoints_cb, NULL, NULL, NULL);
 }
 
index d1034ced86f9af524115d56ec503d311b440a527..739444caa8b1375d42bfd4c66bf039c4a992e804 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_ipx.c
  * endpoint_talkers_ipx   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_ipx.c,v 1.22 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_ipx.c,v 1.23 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_ipx_talkers(void)
 {
        register_ethereal_tap("conv,ipx", gtk_ipx_talkers_init);
 
-       register_tap_menu_item("IPX/Conversation List", REGISTER_TAP_LAYER_NETWORK,
+       register_tap_menu_item("IPX", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_ipx_endpoints_cb, NULL, NULL, NULL);
 }
 
index 5b5c596ee76290cb04416a550725d764f16aa4f0..3b97c0ee952150673eb664d51a038e336ebe762f 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_tcpip.c
  * endpoint_talkers_tcpip   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_tcpip.c,v 1.25 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_tcpip.c,v 1.26 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_tcpip_talkers(void)
 {
        register_ethereal_tap("conv,tcp", gtk_tcpip_talkers_init);
 
-       register_tap_menu_item("TCP/Conversation List (IPv4 & IPv6)", REGISTER_TAP_LAYER_TRANSPORT,
+       register_tap_menu_item("TCP (IPv4 & IPv6)", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_tcpip_endpoints_cb, NULL, NULL, NULL);
 }
 
index 01e9efa2b67af9a4410a78739bf651b6a28e59b4..884517446a8e4c82783f7d9a2f33a5dd674f2898 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_tr.c
  * endpoint_talkers_tr   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_tr.c,v 1.24 2004/02/22 18:44:00 ulfl Exp $
+ * $Id: endpoint_talkers_tr.c,v 1.25 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_tr_talkers(void)
 {
        register_ethereal_tap("conv,tr", gtk_tr_talkers_init);
 
-       register_tap_menu_item("Token Ring/Conversation List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Token Ring", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_tr_endpoints_cb, NULL, NULL, NULL);
 }
 
index 9507d257fa0ccb33ed1c0da44c6f45c6f0271904..3f65a6d0a2ea517e904d30657e64dc37c9333187 100644 (file)
@@ -1,7 +1,7 @@
 /* endpoint_talkers_udpip.c
  * endpoint_talkers_udpip   2003 Ronnie Sahlberg
  *
- * $Id: endpoint_talkers_udpip.c,v 1.25 2004/02/22 18:44:01 ulfl Exp $
+ * $Id: endpoint_talkers_udpip.c,v 1.26 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -81,7 +81,7 @@ register_tap_listener_udpip_talkers(void)
 {
        register_ethereal_tap("conv,udp", gtk_udpip_talkers_init);
 
-       register_tap_menu_item("UDP/Conversation List (IPv4 & IPv6)", REGISTER_TAP_LAYER_TRANSPORT,
+       register_tap_menu_item("UDP (IPv4 & IPv6)", REGISTER_TAP_GROUP_CONVERSATION_LIST,
            gtk_udpip_endpoints_cb, NULL, NULL, NULL);
 }
 
index 7ea5dc2b02a4bced7f348bb480105934a04e77e6..f6f04d81cbb53814e72d1a4f0c8515796f7c416b 100644 (file)
@@ -1,7 +1,7 @@
 /* fc_stat.c
  * fc_stat   2003 Ronnie Sahlberg
  *
- * $Id: fc_stat.c,v 1.27 2004/02/22 18:58:35 ulfl Exp $
+ * $Id: fc_stat.c,v 1.28 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -313,6 +313,6 @@ register_tap_listener_gtkfcstat(void)
 {
        register_ethereal_tap("fc,srt", gtk_fcstat_init);
 
-       register_tap_menu_item("Fibre Channel/Service Response Time...", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Fibre Channel...", REGISTER_TAP_GROUP_RESPONSE_TIME,
            gtk_fcstat_cb, NULL, NULL, NULL);
 }
index e7f5e0d65f689448c54016538b4e3574733025fa..986f607e25021c29e5b787d10e097cd700647d3c 100644 (file)
@@ -1,6 +1,6 @@
 /* follow_dlg.c
  *
- * $Id: follow_dlg.c,v 1.48 2004/02/22 23:39:07 ulfl Exp $
+ * $Id: follow_dlg.c,v 1.49 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -1040,20 +1040,3 @@ follow_save_as_destroy_cb(GtkWidget * win _U_, gpointer data)
        /* Note that we no longer have a dialog box. */
        follow_info->follow_save_as_w = NULL;
 }
-
-
-
-gboolean follow_stream_selected_packet_enabled(frame_data *current_frame, epan_dissect_t *edt) 
-{
-  return current_frame != NULL ? (edt->pi.ipproto == IP_PROTO_TCP) : FALSE;
-}
-
-
-void
-register_tap_listener_follow_stream(void)
-{
-    register_tap_menu_item("TCP/Follow Stream", REGISTER_TAP_LAYER_TRANSPORT,
-        follow_stream_cb, follow_stream_selected_packet_enabled, NULL, NULL);
-}
-
-    
index 6dc40385b76e5b2221572037ff5bbed1c2a61fdf..dbd6a88536dc6649ac7c67601e7008e4336b96b9 100644 (file)
@@ -5,7 +5,7 @@
  *
  * MUCH code modified from service_response_time_table.c.
  *
- * $Id: gsm_a_stat.c,v 1.14 2004/02/22 18:44:01 ulfl Exp $
+ * $Id: gsm_a_stat.c,v 1.15 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -691,27 +691,27 @@ register_tap_listener_gtkgsm_a_stat(void)
        exit(1);
     }
 
-    register_tap_menu_item("GSM/A-Interface BSSMAP", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface BSSMAP", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_bssmap_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/Mobility Management", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/Mobility Management", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_mm_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/Radio Resource Management", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/Radio Resource Management", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_rr_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/Call Control", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/Call Control", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_cc_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/GPRS Mobility Management", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/GPRS Mobility Management", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_gmm_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/Short Message Service", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/Short Message Service", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_sms_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/GPRS Session Management", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/GPRS Session Management", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_sm_cb, NULL, NULL, NULL);
 
-    register_tap_menu_item("GSM/A-Interface DTAP/Supplementary Services", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/A-Interface DTAP/Supplementary Services", REGISTER_TAP_GROUP_NONE,
        gsm_a_stat_gtk_dtap_ss_cb, NULL, NULL, NULL);
 }
index f02d6a8fa9223c8d653fcb845008515dbdda6991..c0c43aeaab308317d156f7a395be791e5dffd51b 100644 (file)
@@ -5,7 +5,7 @@
  *
  * MUCH code modified from service_response_time_table.c.
  *
- * $Id: gsm_map_stat.c,v 1.3 2004/02/22 18:44:01 ulfl Exp $
+ * $Id: gsm_map_stat.c,v 1.4 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -479,6 +479,6 @@ register_tap_listener_gtkgsm_map_stat(void)
        exit(1);
     }
 
-    register_tap_menu_item("GSM/MAP Operation",  REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("GSM/MAP Operation",  REGISTER_TAP_GROUP_NONE,
         gsm_map_stat_gtk_cb, NULL, NULL, NULL);
 }
index df9fdd8edd235aad56258e032e31d5d493ae5513..ce0b2f94bc4b0c593b55e824698300f41b854bbd 100644 (file)
@@ -2,7 +2,7 @@
  * h225 message counter for ethereal
  * Copyright 2003 Lars Roland
  *
- * $Id: h225_counter.c,v 1.14 2004/02/22 21:35:57 ulfl Exp $
+ * $Id: h225_counter.c,v 1.15 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -520,6 +520,6 @@ register_tap_listener_gtk_h225counter(void)
 {
        register_ethereal_tap("h225,counter", gtk_h225counter_init);
 
-       register_tap_menu_item("ITU-T H.225/Statistics...", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("ITU-T H.225...", REGISTER_TAP_GROUP_NONE,
            gtk_tap_dfilter_dlg_cb, NULL, NULL, &(h225_counter_dlg));
 }
index 479d2f7fc09fcbd39616da827ae9b21bfa6d1d90..395e8fc272fa4214bb1156f24ea4589bc9c2496c 100644 (file)
@@ -2,7 +2,7 @@
  * h225 RAS Service Response Time statistics for ethereal
  * Copyright 2003 Lars Roland
  *
- * $Id: h225_ras_srt.c,v 1.12 2004/02/22 18:44:01 ulfl Exp $
+ * $Id: h225_ras_srt.c,v 1.13 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -317,6 +317,6 @@ register_tap_listener_gtk_h225rassrt(void)
 {
        register_ethereal_tap("h225,srt", gtk_h225rassrt_init);
 
-       register_tap_menu_item("ITU-T H.225/RAS (Service Response Time ...)", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("ITU-T H.225 RAS...", REGISTER_TAP_GROUP_RESPONSE_TIME,
            gtk_tap_dfilter_dlg_cb, NULL, NULL, &(h225_rassrt_dlg));
 }
index 6e68a03cf87989c93e65386cd1b1e82e06fc4c22..45c9fbf68a7a21de765f52580de93d86f8affc08 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_eth.c   2004 Ian Schorr
  * modified from endpoint_talkers_eth.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_eth.c,v 1.3 2004/02/23 05:35:46 guy Exp $
+ * $Id: hostlist_eth.c,v 1.4 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_eth_hostlist(void)
 {
        register_ethereal_tap("hosts,eth", gtk_eth_hostlist_init);
 
-       register_tap_menu_item("Ethernet/Host List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Ethernet", REGISTER_TAP_GROUP_HOST_LIST,
            gtk_eth_hostlist_cb, NULL, NULL, NULL);
 }
 
index 06160bd9a0efd1f07f9879d6085ad6e82b1d8c42..440fba27fd0397cd65bd2537d95f61a5917faabb 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_fc.c   2004 Ian Schorr
  * modified from endpoint_talkers_fc.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_fc.c,v 1.3 2004/02/23 05:35:46 guy Exp $
+ * $Id: hostlist_fc.c,v 1.4 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_fc_hostlist(void)
 {
        register_ethereal_tap("hosts,fc", gtk_fc_hostlist_init);
 
-       register_tap_menu_item("Fibre Channel/Host List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Fibre Channel", REGISTER_TAP_GROUP_HOST_LIST,
            gtk_fc_hostlist_cb, NULL, NULL, NULL);
 }
 
index 39bd5ee2b88b43ec799ebe572ed3197e89a17e9f..f452d5f588c9f37360775a1b7f4c62654e24bd56 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_fddi.c   2004 Ian Schorr
  * modified from endpoint_talkers_fddi.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_fddi.c,v 1.3 2004/02/23 05:35:46 guy Exp $
+ * $Id: hostlist_fddi.c,v 1.4 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_fddi_hostlist(void)
 {
        register_ethereal_tap("hosts,fddi", gtk_fddi_hostlist_init);
 
-       register_tap_menu_item("FDDI/Host List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("FDDI", REGISTER_TAP_GROUP_HOST_LIST,
            gtk_fddi_hostlist_cb, NULL, NULL, NULL);
 }
 
index abba458860d0f60bcf5053a37613a5d42ffb8d2b..a59d58b523b7b081df559462b3309db5b75ac5a4 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_ip.c   2004 Ian Schorr
  * modified from endpoint_talkers_ip.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_ip.c,v 1.3 2004/02/23 05:35:46 guy Exp $
+ * $Id: hostlist_ip.c,v 1.4 2004/02/23 19:19:36 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -84,7 +84,7 @@ register_tap_listener_ip_hostlist(void)
 {
        register_ethereal_tap("hosts,ip", gtk_ip_hostlist_init);
 
-       register_tap_menu_item("IP/Host List (IPv4)", REGISTER_TAP_LAYER_NETWORK,
+       register_tap_menu_item("IPv4", REGISTER_TAP_GROUP_HOST_LIST,
                gtk_ip_hostlist_cb, NULL, NULL, NULL);
 }
 
index 6ffeaa84e985864435ac4c9f2bc14aa5788fcc2e..b5ef34800eeaca4b33c1eae97fc69a7bd9872d85 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_ipx.c   2004 Ian Schorr
  * modified from endpoint_talkers_ipx.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_ipx.c,v 1.3 2004/02/23 05:35:46 guy Exp $
+ * $Id: hostlist_ipx.c,v 1.4 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_ipx_hostlist(void)
 {
        register_ethereal_tap("hosts,ipx", gtk_ipx_hostlist_init);
 
-       register_tap_menu_item("IPX/Host List", REGISTER_TAP_LAYER_NETWORK,
+       register_tap_menu_item("IPX", REGISTER_TAP_GROUP_HOST_LIST,
            gtk_ipx_hostlist_cb, NULL, NULL, NULL);
 }
 
index 45106652e71cdddf3c9fbc60122159870a3c6532..359a86585f2568257fafb02abde895972834154b 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_tcpip.c   2004 Ian Schorr
  * modified from endpoint_talkers_tcpip.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_tcpip.c,v 1.4 2004/02/23 05:35:47 guy Exp $
+ * $Id: hostlist_tcpip.c,v 1.5 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_tcpip_hostlist(void)
 {
        register_ethereal_tap("endpoints,tcp", gtk_tcpip_hostlist_init);
 
-       register_tap_menu_item("TCP/Endpoint List (IPv4 & IPv6)", REGISTER_TAP_LAYER_TRANSPORT,
+       register_tap_menu_item("TCP (IPv4 & IPv6)", REGISTER_TAP_GROUP_ENDPOINT_LIST,
            gtk_tcpip_hostlist_cb, NULL, NULL, NULL);
 }
 
index 2c2da4f93cc5315b464c5d6050b471f0e6507be3..9ff01f362e7fd80ed8a3828bd5507237e7500bff 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_tr.c   2004 Ian Schorr
  * modified from endpoint_talkers_tr.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_tr.c,v 1.3 2004/02/23 05:35:47 guy Exp $
+ * $Id: hostlist_tr.c,v 1.4 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_tr_hostlist(void)
 {
        register_ethereal_tap("hosts,tr", gtk_tr_hostlist_init);
 
-       register_tap_menu_item("Token Ring/Host List", REGISTER_TAP_LAYER_DATA_LINK,
+       register_tap_menu_item("Token Ring", REGISTER_TAP_GROUP_HOST_LIST,
            gtk_tr_hostlist_cb, NULL, NULL, NULL);
 }
 
index a50b46e90ec78326054e9b3b2575f0bb200da824..703723a315bc3d37359d4181319ff2ba3d977c96 100644 (file)
@@ -1,7 +1,7 @@
 /* hostlist_udpip.c   2004 Ian Schorr
  * modified from endpoint_talkers_udpip.c   2003 Ronnie Sahlberg
  *
- * $Id: hostlist_udpip.c,v 1.4 2004/02/23 05:35:47 guy Exp $
+ * $Id: hostlist_udpip.c,v 1.5 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -85,7 +85,7 @@ register_tap_listener_udpip_hostlist(void)
 {
        register_ethereal_tap("endpoints,udp", gtk_udpip_hostlist_init);
 
-       register_tap_menu_item("UDP/Endpoint List (IPv4 & IPv6)", REGISTER_TAP_LAYER_TRANSPORT,
+       register_tap_menu_item("UDP (IPv4 & IPv6)", REGISTER_TAP_GROUP_ENDPOINT_LIST,
            gtk_udpip_hostlist_cb, NULL, NULL, NULL);
 }
 
index 8d14529b8878d78015eefe99f3087e044dcc7c9b..529c104213f2da2eba878bef84a10fc128160fc9 100644 (file)
@@ -1,7 +1,7 @@
 /* http_stat.c
  * http_stat   2003 Jean-Michel FAYARD
  *
- * $Id: http_stat.c,v 1.23 2004/02/22 21:35:57 ulfl Exp $
+ * $Id: http_stat.c,v 1.24 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -604,6 +604,6 @@ register_tap_listener_gtkhttpstat(void)
 {
        register_ethereal_tap("http,stat,", gtk_httpstat_init);
 
-       register_tap_menu_item("HTTP (Statistics)", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("HTTP", REGISTER_TAP_GROUP_NONE,
            gtk_httpstat_cb, NULL, NULL, NULL);
 }
index c3feaf0189441bc2f2563b4afc0753afd9e75995..79e2ec54123359f0729883a4a465265792373dd7 100644 (file)
@@ -1,7 +1,7 @@
 /* io_stat.c
  * io_stat   2002 Ronnie Sahlberg
  *
- * $Id: io_stat.c,v 1.64 2004/02/22 18:44:02 ulfl Exp $
+ * $Id: io_stat.c,v 1.65 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -1792,6 +1792,6 @@ register_tap_listener_gtk_iostat(void)
 {
        register_ethereal_tap("io,stat", gtk_iostat_init);
 
-       register_tap_menu_item("IO Statistics", REGISTER_TAP_LAYER_GENERIC,
+       register_tap_menu_item("IO Statistics", REGISTER_TAP_GROUP_GENERIC,
         gtk_iostat_cb, NULL, NULL, NULL);
 }
index b22f6eb7cc75a2e8c4fd7d3f3a842a8d8461768a..dea6e37db8960fe566bb4c5674f1227f6e72437a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * MUCH code modified from service_response_time_table.c.
  *
- * $Id: isup_stat.c,v 1.18 2004/02/22 18:44:02 ulfl Exp $
+ * $Id: isup_stat.c,v 1.19 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -473,6 +473,6 @@ register_tap_listener_gtkisup_stat(void)
        exit(1);
     }
 
-    register_tap_menu_item("ISUP (Message Types)", REGISTER_TAP_LAYER_APPLICATION,
+    register_tap_menu_item("ISUP Message Types", REGISTER_TAP_GROUP_NONE,
         isup_stat_gtk_cb, NULL, NULL, NULL);
 }
index f21d8769a6c74d0399b7fd8c471eddeac51d0b77..1e7ada992faf7f05088998b8dd66167ec6446928 100644 (file)
@@ -1,7 +1,7 @@
 /* ldap_stat.c
  * ldap_stat   2003 Ronnie Sahlberg
  *
- * $Id: ldap_stat.c,v 1.15 2004/02/22 18:58:35 ulfl Exp $
+ * $Id: ldap_stat.c,v 1.16 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -348,6 +348,6 @@ register_tap_listener_gtkldapstat(void)
 {
        register_ethereal_tap("ldap,srt", gtk_ldapstat_init);
 
-       register_tap_menu_item("LDAP (Service Response Time...)", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("LDAP...", REGISTER_TAP_GROUP_RESPONSE_TIME,
            gtk_ldapstat_cb, NULL, NULL, NULL);
 }
index 0416b73ef7e3c28d7920195a44ed1a33de579a8e..5b7d8dc0b343dd5bc8dae4ad5fa83d366855d225 100644 (file)
@@ -1,6 +1,6 @@
 /* main.c
  *
- * $Id: main.c,v 1.406 2004/02/23 16:12:52 gerald Exp $
+ * $Id: main.c,v 1.407 2004/02/23 19:19:37 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -3787,7 +3787,7 @@ create_main_window (gint pl_size, gint tv_size, gint bv_size, e_prefs *prefs)
     set_menu_object_data("/File/Open...", E_DFILTER_TE_KEY, filter_te);
     set_menu_object_data("/Analyze/Display Filters...", E_FILT_TE_PTR_KEY,
                          filter_te);
-    set_menu_object_data("/Transport/TCP/Follow Stream", E_DFILTER_TE_KEY,
+    set_menu_object_data("/Analyze/Follow TCP Stream", E_DFILTER_TE_KEY,
                          filter_te);
     set_menu_object_data("/Analyze/Match/Selected", E_DFILTER_TE_KEY,
                          filter_te);
@@ -3814,9 +3814,6 @@ create_main_window (gint pl_size, gint tv_size, gint bv_size, e_prefs *prefs)
     set_menu_object_data("/Analyze/Prepare/Or Not Selected", E_DFILTER_TE_KEY,
                          filter_te);
     set_toolbar_object_data(E_DFILTER_TE_KEY, filter_te);
-    /* XXX: why does the popup menues depend on this? */
-    set_menu_object_data("/Follow TCP Stream", E_DFILTER_TE_KEY,
-                         filter_te);
     OBJECT_SET_DATA(popup_menu_object, E_DFILTER_TE_KEY, filter_te);
     OBJECT_SET_DATA(popup_menu_object, E_MPACKET_LIST_KEY, packet_list);
 
index 3b59ab981274b97d8c3822bdabda65c680f890cf..00cffebbda1c7acddf2f80f79be00bb3d684a534 100644 (file)
@@ -1,7 +1,7 @@
 /* menu.c
  * Menu routines
  *
- * $Id: menu.c,v 1.171 2004/02/22 23:31:36 ulfl Exp $
+ * $Id: menu.c,v 1.172 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -78,7 +78,7 @@ clear_menu_recent_capture_file_cmd_cb(GtkWidget *w, gpointer unused _U_);
 
 typedef struct _menu_item {
        char    *name;
-    gint    layer;
+    gint    group;
        gboolean enabled;
     GtkItemFactoryCallback callback;
     gpointer callback_data;
@@ -291,11 +291,12 @@ static GtkItemFactoryEntry menu_items[] =
     ITEM_FACTORY_ENTRY("/Analyze/_User Specified Decodes...", NULL,
                        decode_show_cb, 0, NULL, NULL),
     ITEM_FACTORY_ENTRY("/Analyze/<separator>", NULL, NULL, 0, "<Separator>", NULL),
-    ITEM_FACTORY_ENTRY("/Analyze/Summar_y", NULL, summary_open_cb, 0, NULL, NULL),
-    ITEM_FACTORY_ENTRY("/Analyze/Protocol _Hierarchy Statistics", NULL,
+    ITEM_FACTORY_ENTRY("/Analyze/_Follow TCP Stream", NULL,
+                       follow_stream_cb, 0, NULL, NULL),    
+    ITEM_FACTORY_ENTRY("/_Statistics", NULL, NULL, 0, "<Branch>", NULL),
+    ITEM_FACTORY_ENTRY("/Statistics/Summar_y", NULL, summary_open_cb, 0, NULL, NULL),
+    ITEM_FACTORY_ENTRY("/Statistics/Protocol _Hierarchy", NULL,
                        proto_hier_stats_cb, 0, NULL, NULL),
-    ITEM_FACTORY_ENTRY("/_Transport", NULL, NULL, 0, "<Branch>", NULL),
-    ITEM_FACTORY_ENTRY("/App_lication", NULL, NULL, 0, "<Branch>", NULL),
     ITEM_FACTORY_ENTRY("/_Help", NULL, NULL, 0, "<Branch>", NULL),
     ITEM_FACTORY_STOCK_ENTRY("/Help/_Contents", "F1", help_cb, 0, GTK_STOCK_HELP),
     ITEM_FACTORY_ENTRY("/Help/_Supported Protocols", NULL, supported_cb, 0, NULL, NULL),
@@ -505,8 +506,8 @@ gint tap_menu_item_add_compare(gconstpointer a, gconstpointer b)
 
 /* add a menuitem below the current node */
 GList * tap_menu_item_add(
-    gint layer, 
     char *name, 
+    gint group, 
     GtkItemFactoryCallback callback,
     gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
     gboolean (*selected_tree_row_enabled)(field_info *),
@@ -518,7 +519,7 @@ GList * tap_menu_item_add(
 
 
        child = g_malloc(sizeof (menu_item_t));
-    child->layer            = layer;
+    child->group            = group;
        child->name             = name;
     child->callback         = callback;
        child->selected_packet_enabled = selected_packet_enabled;
@@ -560,13 +561,13 @@ GList * tap_menu_item_add(
 void
 register_tap_menu_item(
     char *name, 
-    gint layer, 
+    gint group,
     GtkItemFactoryCallback callback,
     gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
     gboolean (*selected_tree_row_enabled)(field_info *),
     gpointer callback_data)
 {
-       /* static const char toolspath[] = "/Analyze/"; */
+       /*static const char toolspath[] = "/Statistics/";*/
        char *toolspath;
        char *p;
        char *menupath;
@@ -580,29 +581,13 @@ register_tap_menu_item(
      */
        g_assert(*name != '/');
 
-#if 0
-    switch(layer) {
-    case(REGISTER_TAP_LAYER_GENERIC): toolspath = "/Analyze/"; break;
-    case(REGISTER_TAP_LAYER_PHYSICAL): toolspath = "/Physical/"; break;
-    case(REGISTER_TAP_LAYER_DATA_LINK): toolspath = "/Link/"; break;
-    case(REGISTER_TAP_LAYER_NETWORK): toolspath = "/Network/"; break;
-    case(REGISTER_TAP_LAYER_TRANSPORT): toolspath = "/Transport/"; break;
-    case(REGISTER_TAP_LAYER_SESSION): toolspath = "/Session/"; break;
-    case(REGISTER_TAP_LAYER_PRESENTATION): toolspath = "/Presentation/"; break;
-    case(REGISTER_TAP_LAYER_APPLICATION): toolspath = "/Application/"; break;
-    default:
-        g_assert(0);
-    }
-#endif
-    switch(layer) {
-    case(REGISTER_TAP_LAYER_GENERIC): toolspath = "/Analyze/"; break;
-    case(REGISTER_TAP_LAYER_PHYSICAL): toolspath = "/Transport/"; break;
-    case(REGISTER_TAP_LAYER_DATA_LINK): toolspath = "/Transport/"; break;
-    case(REGISTER_TAP_LAYER_NETWORK): toolspath = "/Transport/"; break;
-    case(REGISTER_TAP_LAYER_TRANSPORT): toolspath = "/Transport/"; break;
-    case(REGISTER_TAP_LAYER_SESSION): toolspath = "/Application/"; break;
-    case(REGISTER_TAP_LAYER_PRESENTATION): toolspath = "/Application/"; break;
-    case(REGISTER_TAP_LAYER_APPLICATION): toolspath = "/Application/"; break;
+    switch(group) {
+    case(REGISTER_TAP_GROUP_GENERIC): toolspath = "/Statistics/"; break;
+    case(REGISTER_TAP_GROUP_CONVERSATION_LIST): toolspath = "/Statistics/Conversation List/"; break;
+    case(REGISTER_TAP_GROUP_ENDPOINT_LIST): toolspath = "/Statistics/Endpoint List/"; break;
+    case(REGISTER_TAP_GROUP_HOST_LIST): toolspath = "/Statistics/Host List/"; break;
+    case(REGISTER_TAP_GROUP_RESPONSE_TIME): toolspath = "/Statistics/Service Response Time/"; break;
+    case(REGISTER_TAP_GROUP_NONE): toolspath = "/Statistics/"; break;
     default:
         g_assert(0);
         toolspath = NULL;
@@ -648,7 +633,7 @@ register_tap_menu_item(
              * add it to the Tools menu tree.
              */
             childnode = tap_menu_item_add(
-                layer, menupath, NULL, NULL ,NULL, NULL, curnode);
+                menupath, group, NULL, NULL ,NULL, NULL, curnode);
         } else {
             /*
              * Yes.  We don't need this "menupath" any longer.
@@ -676,13 +661,13 @@ register_tap_menu_item(
      * the main menu.
      */
     tap_menu_item_add(
-        layer, menupath, callback, 
+        menupath, group, callback, 
         selected_packet_enabled, selected_tree_row_enabled, 
         callback_data, curnode);
 }
 
 
-guint merge_tap_menus_layered(GList *node, gint layer) {
+guint merge_tap_menus_layered(GList *node, gint group) {
     GtkItemFactoryEntry *entry;
     GList       *child;
     guint       added = 0;
@@ -700,7 +685,7 @@ guint merge_tap_menus_layered(GList *node, gint layer) {
          * The root node doesn't correspond to a menu tree item; it
          * has a null name pointer.
          */
-        if (node_data->name != NULL && layer == node_data->layer) {
+        if (node_data->name != NULL && group == node_data->group) {
             entry = g_malloc0(sizeof (GtkItemFactoryEntry));
             entry->path = node_data->name;
             entry->callback = node_data->callback;
@@ -718,7 +703,7 @@ guint merge_tap_menus_layered(GList *node, gint layer) {
          * The root node doesn't correspond to a menu tree item; it
          * has a null name pointer.
          */
-        if (node_data->name != NULL && layer == node_data->layer) {
+        if (node_data->name != NULL && group == node_data->group) {
             entry = g_malloc0(sizeof (GtkItemFactoryEntry));
             entry->path = node_data->name;
             entry->item_type = "<Branch>";
@@ -731,7 +716,7 @@ guint merge_tap_menus_layered(GList *node, gint layer) {
 
         for (child = node_data->children; child != NULL; child =
             child->next) {
-            added += merge_tap_menus_layered(child, layer);
+            added += merge_tap_menus_layered(child, group);
         }
     }
 
@@ -744,31 +729,30 @@ void merge_all_tap_menus(GList *node) {
 
     entry = g_malloc0(sizeof (GtkItemFactoryEntry));
     entry->item_type = "<Separator>";
+    entry->path = "/Statistics/";
 
     /* 
-     * merge only the menu items of the specific layer,
+     * merge only the menu items of the specific group,
      * and then append a seperator
      */
-    entry->path = "/Analyze/";
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_GENERIC))
-        /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
-
-    entry->path = "/Transport/";
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_PHYSICAL))
-        gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_DATA_LINK))
-        gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_NETWORK))
+    if (merge_tap_menus_layered(node, REGISTER_TAP_GROUP_GENERIC)) {
         gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_TRANSPORT))
+    }
+    if (merge_tap_menus_layered(node, REGISTER_TAP_GROUP_CONVERSATION_LIST)) {
         /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
-
-    entry->path = "/Application/";
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_SESSION))
-        gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);
-    if (merge_tap_menus_layered(node, REGISTER_TAP_LAYER_PRESENTATION))
+    }
+    if (merge_tap_menus_layered(node, REGISTER_TAP_GROUP_ENDPOINT_LIST)) {
+        /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
+    }
+    if (merge_tap_menus_layered(node, REGISTER_TAP_GROUP_HOST_LIST)) {
+        /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
+    }
+    if (merge_tap_menus_layered(node, REGISTER_TAP_GROUP_RESPONSE_TIME)) {
         gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);
-    merge_tap_menus_layered(node, REGISTER_TAP_LAYER_APPLICATION);
+    }
+    if (merge_tap_menus_layered(node, REGISTER_TAP_GROUP_NONE)) {
+        /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
+    }
 }
 
 
@@ -1558,9 +1542,9 @@ set_menus_for_captured_packets(gboolean have_captured_packets)
       have_captured_packets);
   set_menu_sensitivity(packet_list_menu_factory, "/Coloring Rules...",
       have_captured_packets);
-  set_menu_sensitivity(main_menu_factory, "/Analyze/Summary",
+  set_menu_sensitivity(main_menu_factory, "/Statistics/Summary",
       have_captured_packets);
-  set_menu_sensitivity(main_menu_factory, "/Analyze/Protocol Hierarchy Statistics", 
+  set_menu_sensitivity(main_menu_factory, "/Statistics/Protocol Hierarchy", 
       have_captured_packets);
       
   walk_menu_tree_for_captured_packets(tap_menu_tree_root,
@@ -1654,6 +1638,8 @@ set_menus_for_selected_packet(capture_file *cf)
       cf->current_frame != NULL);
   set_menu_sensitivity(packet_list_menu_factory, "/Show Packet In New Window",
       cf->current_frame != NULL);
+  set_menu_sensitivity(main_menu_factory, "/Analyze/Follow TCP Stream",
+      cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_TCP) : FALSE);
   set_menu_sensitivity(NULL, "/Follow TCP Stream",
       cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_TCP) : FALSE);
   set_menu_sensitivity(main_menu_factory, "/Analyze/Decode As...",
index c6e5bd0d03ae0593dacb96d7627279f641c82227..638ef11af4a771d6936ded0326482d876d4262e4 100644 (file)
@@ -2,7 +2,7 @@
  * mgcp-statistics for ethereal
  * Copyright 2003 Lars Roland
  *
- * $Id: mgcp_stat.c,v 1.29 2004/02/22 18:44:02 ulfl Exp $
+ * $Id: mgcp_stat.c,v 1.30 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -312,6 +312,6 @@ register_tap_listener_gtkmgcpstat(void)
        register_ethereal_tap("mgcp,srt", gtk_mgcpstat_init);
 
        if (find_tap_id("mgcp"))
-               register_tap_menu_item("MGCP (Service Response Time...)", REGISTER_TAP_LAYER_APPLICATION,
+               register_tap_menu_item("MGCP...", REGISTER_TAP_GROUP_NONE,
                    gtk_tap_dfilter_dlg_cb, NULL, NULL, &(mgcp_srt_dlg));
 }
index 55b703ce4d762c987ba6dd32d54018689440301c..4ad2037b3673b4c65b6c5b27b77036adb16648ef 100644 (file)
@@ -1,7 +1,7 @@
 /* rpc_progs.c
  * rpc_progs   2002 Ronnie Sahlberg
  *
- * $Id: rpc_progs.c,v 1.20 2004/02/22 18:44:02 ulfl Exp $
+ * $Id: rpc_progs.c,v 1.21 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -404,6 +404,6 @@ register_tap_listener_gtkrpcprogs(void)
 {
        register_ethereal_tap("rpc,programs", gtk_rpcprogs_init);
 
-       register_tap_menu_item("ONC-RPC/Programs", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("ONC-RPC Programs", REGISTER_TAP_GROUP_NONE,
         gtk_rpcprogs_cb, NULL, NULL, NULL);
 }
index 299501a1cebcb6296827334466e32893eba79e7f..d5673b57d9f4631f168b4a561ed8e0452a91d97b 100644 (file)
@@ -1,7 +1,7 @@
 /* rpc_stat.c
  * rpc_stat   2002 Ronnie Sahlberg
  *
- * $Id: rpc_stat.c,v 1.40 2004/02/22 18:58:35 ulfl Exp $
+ * $Id: rpc_stat.c,v 1.41 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -523,7 +523,7 @@ register_tap_listener_gtkrpcstat(void)
 {
        register_ethereal_tap("rpc,srt,", gtk_rpcstat_init);
 
-       register_tap_menu_item("ONC-RPC/Service Response Time...", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("ONC-RPC...", REGISTER_TAP_GROUP_RESPONSE_TIME,
            gtk_rpcstat_cb, NULL, NULL, NULL);
 }
 
index 7ee792692f954f21fbd4652e524f46e447bdb82d..b4d634caeed4c5ad7fb0d5b429abdf673e8d2a17 100644 (file)
@@ -1,7 +1,7 @@
 /* rtp_analysis.c
  * RTP analysis addition for ethereal
  *
- * $Id: rtp_analysis.c,v 1.38 2004/02/22 18:44:03 ulfl Exp $
+ * $Id: rtp_analysis.c,v 1.39 2004/02/23 19:19:38 ulfl Exp $
  *
  * Copyright 2003, Alcatel Business Systems
  * By Lars Ruoff <lars.ruoff@gmx.net>
@@ -2345,6 +2345,6 @@ register_tap_listener_rtp_analysis(void)
 {
        register_ethereal_tap("rtp", rtp_analysis_init);
 
-       register_tap_menu_item("RTP/Stream Analysis...", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("RTP/Stream Analysis...", REGISTER_TAP_GROUP_NONE,
            rtp_analysis_cb, NULL, NULL, NULL);
 }
index eef1e40bd19ce790c8f620a7e97b124a9564bb03..e08ae2645ab453496c8f0869c4e44286fc517e46 100644 (file)
@@ -1,7 +1,7 @@
 /* rtp_stream_dlg.c
  * RTP streams summary addition for ethereal
  *
- * $Id: rtp_stream_dlg.c,v 1.15 2004/02/22 18:44:03 ulfl Exp $
+ * $Id: rtp_stream_dlg.c,v 1.16 2004/02/23 19:19:38 ulfl Exp $
  *
  * Copyright 2003, Alcatel Business Systems
  * By Lars Ruoff <lars.ruoff@gmx.net>
@@ -826,6 +826,6 @@ void rtpstream_launch(GtkWidget *w _U_, gpointer data _U_)
 void
 register_tap_listener_rtp_stream_dlg(void)
 {
-       register_tap_menu_item("RTP/Show All Streams...", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("RTP/Show All Streams...", REGISTER_TAP_GROUP_NONE,
            rtpstream_launch, NULL, NULL, NULL);
 }
index c28507e943050c3a29c5447658f06d8ba3d0853e..ea4a89357fdda15a3604b16b0fc015427c8dca7a 100644 (file)
@@ -1,7 +1,7 @@
 /* smb_stat.c
  * smb_stat   2003 Ronnie Sahlberg
  *
- * $Id: smb_stat.c,v 1.38 2004/02/22 18:58:35 ulfl Exp $
+ * $Id: smb_stat.c,v 1.39 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -353,6 +353,6 @@ register_tap_listener_gtksmbstat(void)
 {
        register_ethereal_tap("smb,srt", gtk_smbstat_init);
 
-       register_tap_menu_item("SMB (Service Response Time...)", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("SMB...", REGISTER_TAP_GROUP_RESPONSE_TIME,
            gtk_smbstat_cb, NULL, NULL, NULL);
 }
index 4836e67c472933b95c9493a438bf3ea1b80ef03e..f52f5121c27cada6e1e1bee5c9bab845e6ebe94d 100644 (file)
@@ -1,7 +1,7 @@
 /* tap_menu.h
  * Menu definitions for use by taps
  *
- * $Id: tap_menu.h,v 1.2 2004/02/22 18:44:03 ulfl Exp $
+ * $Id: tap_menu.h,v 1.3 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -53,21 +53,19 @@ extern "C" {
  */
 extern void register_tap_menu_item(
     char *name, 
-    gint layer,
+    gint group,
     GtkItemFactoryCallback callback,
     gboolean (*selected_packet_enabled)(frame_data *, epan_dissect_t *),
     gboolean (*selected_tree_row_enabled)(field_info *),
     gpointer callback_data);
 
 /* XXX: would it better to use an enum here? */
-#define REGISTER_TAP_LAYER_GENERIC      0
-#define REGISTER_TAP_LAYER_PHYSICAL     1   /* currently unused */
-#define REGISTER_TAP_LAYER_DATA_LINK    2
-#define REGISTER_TAP_LAYER_NETWORK      3
-#define REGISTER_TAP_LAYER_TRANSPORT    4
-#define REGISTER_TAP_LAYER_SESSION      5   /* currently unused */
-#define REGISTER_TAP_LAYER_PRESENTATION 6   /* currently unused */
-#define REGISTER_TAP_LAYER_APPLICATION  7
+#define REGISTER_TAP_GROUP_GENERIC              0
+#define REGISTER_TAP_GROUP_CONVERSATION_LIST    1
+#define REGISTER_TAP_GROUP_ENDPOINT_LIST        2
+#define REGISTER_TAP_GROUP_HOST_LIST            3
+#define REGISTER_TAP_GROUP_RESPONSE_TIME        4
+#define REGISTER_TAP_GROUP_NONE                 10
 
 #ifdef __cplusplus
 }
index 8aaa246ee7df517d18479041b9b051811cd1c967..22f3f10fbf0cdec21c1d77b54e629127eac284d5 100644 (file)
@@ -3,7 +3,7 @@
  * By Pavel Mores <pvl@uh.cz>
  * Win32 port:  rwh@unifiedtech.com
  *
- * $Id: tcp_graph.c,v 1.53 2004/02/22 19:48:10 ulfl Exp $
+ * $Id: tcp_graph.c,v 1.54 2004/02/23 19:19:38 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -3974,13 +3974,13 @@ gboolean tcp_graph_selected_packet_enabled(frame_data *current_frame, epan_disse
 void
 register_tap_listener_tcp_graph(void)
 {
-    register_tap_menu_item("TCP/Stream Analysis/Time-Sequence Graph (Stevens)", REGISTER_TAP_LAYER_TRANSPORT,
+    register_tap_menu_item("TCP Stream Analysis/Time-Sequence Graph (Stevens)", REGISTER_TAP_GROUP_NONE,
         tcp_graph_cb, tcp_graph_selected_packet_enabled, NULL, GINT_TO_POINTER(0));
-    register_tap_menu_item("TCP/Stream Analysis/Time-Sequence Graph (tcptrace)", REGISTER_TAP_LAYER_TRANSPORT,
+    register_tap_menu_item("TCP Stream Analysis/Time-Sequence Graph (tcptrace)", REGISTER_TAP_GROUP_NONE,
         tcp_graph_cb, tcp_graph_selected_packet_enabled, NULL, GINT_TO_POINTER(1));
-    register_tap_menu_item("TCP/Stream Analysis/Throughput Graph", REGISTER_TAP_LAYER_TRANSPORT,
+    register_tap_menu_item("TCP Stream Analysis/Throughput Graph", REGISTER_TAP_GROUP_NONE,
         tcp_graph_cb, tcp_graph_selected_packet_enabled, NULL, GINT_TO_POINTER(2));
-    register_tap_menu_item("TCP/Stream Analysis/Round Trip Time Graph", REGISTER_TAP_LAYER_TRANSPORT,
+    register_tap_menu_item("TCP Stream Analysis/Round Trip Time Graph", REGISTER_TAP_GROUP_NONE,
         tcp_graph_cb, tcp_graph_selected_packet_enabled, NULL, GINT_TO_POINTER(3));
 }
 
index ed93cc56417bc95004d600dc8eaae44d2ed756ad..0f6a84f3e6a7acc2827b4d218149ae952709b27d 100644 (file)
@@ -1,7 +1,7 @@
 /* wsp_stat.c
  * wsp_stat   2003 Jean-Michel FAYARD
  *
- * $Id: wsp_stat.c,v 1.21 2004/02/22 21:35:58 ulfl Exp $
+ * $Id: wsp_stat.c,v 1.22 2004/02/23 19:19:39 ulfl Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -508,6 +508,6 @@ register_tap_listener_gtkwspstat(void)
 {
        register_ethereal_tap("wsp,stat,", gtk_wspstat_init);
 
-       register_tap_menu_item("WAP-WSP (Statistics...)", REGISTER_TAP_LAYER_APPLICATION,
+       register_tap_menu_item("WAP-WSP...", REGISTER_TAP_GROUP_NONE,
            gtk_wspstat_cb, NULL, NULL, NULL);
 }