]> git.baikalelectronics.ru Git - kernel.git/commit
syncookies: add support for ECN
authorFlorian Westphal <fw@strlen.de>
Mon, 21 Jun 2010 11:48:45 +0000 (11:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jun 2010 05:00:03 +0000 (22:00 -0700)
commit6c08baa1e549312b5b3fcf67e2b90da6e443b03b
treec71118ddc86186e235a920b9529c457db5e9aae5
parente366e47e5cd1cb31a8a20d8c8299a97e69e96c3c
syncookies: add support for ECN

Allows use of ECN when syncookies are in effect by encoding ecn_ok
into the syn-ack tcp timestamp.

While at it, remove a uneeded #ifdef CONFIG_SYN_COOKIES.
With CONFIG_SYN_COOKIES=nm want_cookie is ifdef'd to 0 and gcc
removes the "if (0)".

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