]> git.baikalelectronics.ru Git - kernel.git/commit
syncookies: do not store rcv_wscale in tcp timestamp
authorFlorian Westphal <fw@strlen.de>
Mon, 21 Jun 2010 11:48:44 +0000 (11:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jun 2010 05:00:03 +0000 (22:00 -0700)
commite366e47e5cd1cb31a8a20d8c8299a97e69e96c3c
treef5602e98d4088b1b667e286a1ead644122cd77e8
parentaae7ad9f659b624a300f300018a3d3e2f1ad0f73
syncookies: do not store rcv_wscale in tcp timestamp

As pointed out by Fernando Gont there is no need to encode rcv_wscale
into the cookie.

We did not use the restored rcv_wscale anyway; it is recomputed
via tcp_select_initial_window().

Thus we can save 4 bits in the ts option space by removing rcv_wscale.
In case window scaling was not supported, we set the (invalid) wscale
value 0xf.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c
net/ipv6/syncookies.c