aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/tcp_graph.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2013-12-05 14:45:03 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2013-12-05 14:45:03 +0000
commiteb85d08557623ae5d4a932e9b8463b0b8411fff9 (patch)
treee189f228f977eff7c258ff8eb37cd3ec7cbeeb44 /ui/gtk/tcp_graph.c
parent125a17f8e511efe36d14644715e37b438a87c6e0 (diff)
Make launching TCP graphs from conversations window work again, by supplying stream and direction when graph is first created
svn path=/trunk/; revision=53797
Diffstat (limited to 'ui/gtk/tcp_graph.c')
-rw-r--r--ui/gtk/tcp_graph.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c
index f1120cb41a..1ff7e7fca4 100644
--- a/ui/gtk/tcp_graph.c
+++ b/ui/gtk/tcp_graph.c
@@ -44,6 +44,7 @@
#include <epan/epan_dissect.h>
#include <epan/dissectors/packet-tcp.h>
#include <epan/address.h>
+#include <epan/conv_id.h>
#include "../../globals.h"
#include "../../stat_menu.h"
@@ -632,7 +633,8 @@ void tcp_graph_cb(GtkAction *action, gpointer user_data _U_)
}
void tcp_graph_known_stream_launch(address *src_address, guint16 src_port,
- address *dst_address, guint16 dst_port)
+ address *dst_address, guint16 dst_port,
+ conv_id_t stream)
{
struct gtk_graph *g;
@@ -648,6 +650,7 @@ void tcp_graph_known_stream_launch(address *src_address, guint16 src_port,
g->tg.src_port = src_port;
COPY_ADDRESS(&g->tg.dst_address, dst_address);
g->tg.dst_port = dst_port;
+ g->tg.stream = stream;
/* This graph type is arguably the most useful, so start there */
g->tg.type = GRAPH_TSEQ_TCPTRACE;