diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-07-01 19:00:14 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-07-01 19:00:14 +0000 |
commit | d927b60f217284256a6c43976a96fc1f465bacf5 (patch) | |
tree | d67065929393a7b0fc61dfc51671ae9e254d3ce3 | |
parent | 8160523d8023d6f14dac2bc52d7a48d81b424a9a (diff) |
Initialize the TCP windows to the maximum value instead of 0 to avoid false zero window conditions, especially at the beginning of a capture or if only one side of a conversation is captured. This resolves bug 4716: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4716.
svn path=/trunk/; revision=37853
-rw-r--r-- | epan/dissectors/packet-tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c index ba42676825..ebe0fcfade 100644 --- a/epan/dissectors/packet-tcp.c +++ b/epan/dissectors/packet-tcp.c @@ -376,11 +376,13 @@ init_tcp_conversation_data(packet_info *pinfo) /* Initialize the tcp protocol data structure to add to the tcp conversation */ tcpd=se_alloc0(sizeof(struct tcp_analysis)); tcpd->flow1.win_scale=-1; + tcpd->flow1.window = G_MAXUINT32; tcpd->flow1.multisegment_pdus=se_tree_create_non_persistent(EMEM_TREE_TYPE_RED_BLACK, "tcp_multisegment_pdus"); /* tcpd->flow1.username = NULL; tcpd->flow1.command = NULL; */ + tcpd->flow2.window = G_MAXUINT32; tcpd->flow2.win_scale=-1; tcpd->flow2.multisegment_pdus=se_tree_create_non_persistent(EMEM_TREE_TYPE_RED_BLACK, "tcp_multisegment_pdus"); /* |