diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-06-14 12:37:43 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-06-14 12:37:43 +0000 |
commit | 59af566844b38c8eab769a60bf71afc61ca49290 (patch) | |
tree | 08e7a7dd07a0aecc4e36917600261614f1030ef3 /gtk/flow_graph.c | |
parent | 195f3ba1186ee156517ae0c30c987340c362a379 (diff) |
Fix Bug #4871: Wrong Ack value in TCP flow graph when using relative sequence numbers.
See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4871
svn path=/trunk/; revision=33223
Diffstat (limited to 'gtk/flow_graph.c')
-rw-r--r-- | gtk/flow_graph.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/flow_graph.c b/gtk/flow_graph.c index 1300ae3518..bf6a59649a 100644 --- a/gtk/flow_graph.c +++ b/gtk/flow_graph.c @@ -351,7 +351,10 @@ static int flow_graph_tcp_add_to_graph(packet_info *pinfo, const struct tcpheade gai->frame_label = g_strdup(flags); } - gai->comment = g_strdup_printf("Seq = %u Ack = %u",tcph->th_seq, tcph->th_ack); + if (tcph->th_flags & TH_ACK) + gai->comment = g_strdup_printf("Seq = %u Ack = %u",tcph->th_seq, tcph->th_ack); + else + gai->comment = g_strdup_printf("Seq = %u",tcph->th_seq); gai->line_style=1; gai->conv_num=0; |