diff options
author | Florin Coras <fcoras@cisco.com> | 2018-09-27 09:19:29 -0700 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2018-09-27 09:47:26 -0700 |
commit | 45ca73f6af1584a44886d5a13702885be58df1b6 (patch) | |
tree | 1295b939acda6ae340230a794f7dbe1af53a5e0e /src/vnet/tcp/tcp_input.c | |
parent | 7d7b8c6dd7dc7a3efa89bb7b7c34742939b225fd (diff) |
tcp: use scaled window for new connects
Change-Id: Idf83fce8ca176e57b323e3741034e3223f1d195a
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
-rw-r--r-- | src/vnet/tcp/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index b66e940a377..d297ee7ed3e 100644 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -2282,8 +2282,8 @@ tcp46_syn_sent_inline (vlib_main_t * vm, vlib_node_runtime_t * node, if (tcp_opts_wscale (&new_tc0->rcv_opts)) new_tc0->snd_wscale = new_tc0->rcv_opts.wscale; - /* RFC1323: SYN and SYN-ACK wnd not scaled */ - new_tc0->snd_wnd = clib_net_to_host_u16 (tcp0->window); + new_tc0->snd_wnd = clib_net_to_host_u16 (tcp0->window) + << new_tc0->snd_wscale; new_tc0->snd_wl1 = seq0; new_tc0->snd_wl2 = ack0; |