From 700d8194b8c71c80bff2a3e1acbf3a99c6569dc2 Mon Sep 17 00:00:00 2001 From: Stephen Fisher Date: Sat, 3 Nov 2007 04:45:35 +0000 Subject: - Future improve/clean up the now generic follow stream code - Add "Follow UDP Stream" feature svn path=/trunk/; revision=23346 --- gtk/menu.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'gtk/menu.c') diff --git a/gtk/menu.c b/gtk/menu.c index e53618013f..a4377ae38a 100644 --- a/gtk/menu.c +++ b/gtk/menu.c @@ -56,6 +56,8 @@ #include "packet_win.h" #include "print.h" #include "follow_tcp.h" +#include "follow_udp.h" +#include "follow_ssl.h" #include "decode_as_dlg.h" #include "help_dlg.h" #include "supported_protos_dlg.h" @@ -79,7 +81,6 @@ #include "simple_dialog.h" #include "packet_history.h" #include "color_filters.h" -#include "follow_ssl.h" #include "sctp_stat.h" #include "firewall_dlg.h" #include "u3.h" @@ -622,6 +623,8 @@ static GtkItemFactoryEntry menu_items[] = ITEM_FACTORY_ENTRY("/Analyze/", NULL, NULL, 0, "", NULL), ITEM_FACTORY_ENTRY("/Analyze/_Follow TCP Stream", NULL, follow_tcp_stream_cb, 0, NULL, NULL), + ITEM_FACTORY_ENTRY("/Analyze/_Follow UDP Stream", NULL, + follow_udp_stream_cb, 0, NULL, NULL), ITEM_FACTORY_ENTRY("/Analyze/_Follow SSL Stream", NULL, follow_ssl_stream_cb, 0, NULL, NULL), ITEM_FACTORY_ENTRY("/_Statistics", NULL, NULL, 0, "", NULL), @@ -721,6 +724,8 @@ static GtkItemFactoryEntry packet_list_menu_items[] = ITEM_FACTORY_ENTRY("/Follow TCP Stream", NULL, follow_tcp_stream_cb, 0, NULL, NULL), + ITEM_FACTORY_ENTRY("/Follow UDP Stream", NULL, follow_udp_stream_cb, + 0, NULL, NULL), ITEM_FACTORY_ENTRY("/Follow SSL Stream", NULL, follow_ssl_stream_cb, 0, NULL, NULL), @@ -792,6 +797,8 @@ static GtkItemFactoryEntry tree_view_menu_items[] = ITEM_FACTORY_ENTRY("/Follow TCP Stream", NULL, follow_tcp_stream_cb, 0, NULL, NULL), + ITEM_FACTORY_ENTRY("/Follow UDP Stream", NULL, follow_udp_stream_cb, + 0, NULL, NULL), ITEM_FACTORY_ENTRY("/Follow SSL Stream", NULL, follow_ssl_stream_cb, 0, NULL, NULL), @@ -2465,6 +2472,12 @@ set_menus_for_selected_packet(capture_file *cf) cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_TCP) : FALSE); set_menu_sensitivity(tree_view_menu_factory, "/Follow TCP Stream", cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_TCP) : FALSE); + set_menu_sensitivity(main_menu_factory, "/Analyze/Follow UDP Stream", + cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_UDP) : FALSE); + set_menu_sensitivity(packet_list_menu_factory, "/Follow UDP Stream", + cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_UDP) : FALSE); + set_menu_sensitivity(tree_view_menu_factory, "/Follow UDP Stream", + cf->current_frame != NULL ? (cf->edt->pi.ipproto == IP_PROTO_UDP) : FALSE); set_menu_sensitivity(main_menu_factory, "/Analyze/Follow SSL Stream", cf->current_frame != NULL ? is_ssl : FALSE); set_menu_sensitivity(packet_list_menu_factory, "/Follow SSL Stream", -- cgit v1.2.3