mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
734f614bc1
commit
172d69e63c
5 changed files with 17 additions and 13 deletions
|
@ -464,7 +464,7 @@ extern __u32 cookie_v4_init_sequence(struct sock *sk, struct sk_buff *skb,
|
|||
__u16 *mss);
|
||||
|
||||
extern __u32 cookie_init_timestamp(struct request_sock *req);
|
||||
extern bool cookie_check_timestamp(struct tcp_options_received *tcp_opt);
|
||||
extern bool cookie_check_timestamp(struct tcp_options_received *opt, bool *);
|
||||
|
||||
/* From net/ipv6/syncookies.c */
|
||||
extern struct sock *cookie_v6_check(struct sock *sk, struct sk_buff *skb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue