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>
Showing
- include/net/tcp.h 1 addition, 1 deletioninclude/net/tcp.h
- net/ipv4/syncookies.c 10 additions, 5 deletionsnet/ipv4/syncookies.c
- net/ipv4/tcp_ipv4.c 2 additions, 4 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv6/syncookies.c 3 additions, 2 deletionsnet/ipv6/syncookies.c
- net/ipv6/tcp_ipv6.c 1 addition, 1 deletionnet/ipv6/tcp_ipv6.c
Loading