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
This commit is contained in:
Bill Meier 2010-06-14 12:37:43 +00:00
parent 195f3ba118
commit 59af566844
1 changed files with 4 additions and 1 deletions

View File

@ -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;