diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2013-06-19 23:27:12 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2013-06-19 23:27:12 +0000 |
commit | 8411a601df671e31ef4a89d68e8a0b196c785acb (patch) | |
tree | 738c5e5444a08a44a1b57073591f0f791b29d841 /ui/gtk/follow_tcp.c | |
parent | 8b0f1addd990ae1b6616dbb5a21e530942461154 (diff) |
Implement bug 8675: show stream id in follow TCP stream window.
svn path=/trunk/; revision=50067
Diffstat (limited to 'ui/gtk/follow_tcp.c')
-rw-r--r-- | ui/gtk/follow_tcp.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ui/gtk/follow_tcp.c b/ui/gtk/follow_tcp.c index ff463602c9..b079646195 100644 --- a/ui/gtk/follow_tcp.c +++ b/ui/gtk/follow_tcp.c @@ -109,6 +109,7 @@ follow_tcp_stream_cb(GtkWidget * w _U_, gpointer data _U_) tcp_stream_chunk sc; size_t nchars; gchar *data_out_filename; + char stream_window_title[256]; /* we got tcp so we can follow */ if (cfile.edt->pi.ipproto != IP_PROTO_TCP) { @@ -198,9 +199,6 @@ follow_tcp_stream_cb(GtkWidget * w _U_, gpointer data _U_) same as the previous display filter. */ main_filter_packets(&cfile, follow_filter, TRUE); - /* Free the filter string, as we're done with it. */ - g_free(follow_filter); - /* Check whether we got any data written to the file. */ if (empty_tcp_stream) { simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, @@ -266,7 +264,7 @@ follow_tcp_stream_cb(GtkWidget * w _U_, gpointer data _U_) hostname1 = get_hostname(ipaddr); } - follow_info->is_ipv6 = stats.is_ipv6; + follow_info->is_ipv6 = stats.is_ipv6; port0 = get_tcp_port(stats.port[0]); port1 = get_tcp_port(stats.port[1]); @@ -304,8 +302,12 @@ follow_tcp_stream_cb(GtkWidget * w _U_, gpointer data _U_) /* Both Stream Directions */ both_directions_string = g_strdup_printf("Entire conversation (%u bytes)", stats.bytes_written[0] + stats.bytes_written[1]); - follow_stream("Follow TCP Stream", follow_info, both_directions_string, - server_to_client_string, client_to_server_string); + g_snprintf(stream_window_title, 256, "Follow TCP Stream (%s)", follow_filter); + follow_stream(stream_window_title, follow_info, both_directions_string, + server_to_client_string, client_to_server_string); + + /* Free the filter string, as we're done with it. */ + g_free(follow_filter); g_free(both_directions_string); g_free(server_to_client_string); |