Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
tcp: fix rcv_wnd computation
[vpp.git]
/
src
/
vnet
/
tcp
/
tcp_output.c
diff --git
a/src/vnet/tcp/tcp_output.c
b/src/vnet/tcp/tcp_output.c
index
2f728cc
..
5a5c7fe
100644
(file)
--- a/
src/vnet/tcp/tcp_output.c
+++ b/
src/vnet/tcp/tcp_output.c
@@
-172,7
+172,7
@@
tcp_update_rcv_wnd (tcp_connection_t * tc)
/* Make sure we have a multiple of rcv_wscale */
if (wnd && tc->rcv_wscale)
{
- wnd &= ~(
1 << tc->rcv_wscale
);
+ wnd &= ~(
(1 << tc->rcv_wscale) - 1
);
if (wnd == 0)
wnd = 1 << tc->rcv_wscale;
}