diff options
author | Wei Wang <weiwan@google.com> | 2017-01-23 13:59:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-25 14:04:38 -0500 |
commit | 065263f40f0972d5f1cd294bb0242bd5aa5f06b2 (patch) | |
tree | c8d7915e4b9cb64a7e069b2842897af5b5c73f85 /include/net/tcp.h | |
parent | a9c54ad2c737853b1f404b10b09da4ca7fa18597 (diff) |
net/tcp-fastopen: refactor cookie check logic
Refactor the cookie check logic in tcp_send_syn_data() into a function.
This function will be called else where in later changes.
Signed-off-by: Wei Wang <weiwan@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index c55d65f74f7f..de67541d7adf 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1493,6 +1493,8 @@ struct sock *tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, | |||
1493 | struct tcp_fastopen_cookie *foc, | 1493 | struct tcp_fastopen_cookie *foc, |
1494 | struct dst_entry *dst); | 1494 | struct dst_entry *dst); |
1495 | void tcp_fastopen_init_key_once(bool publish); | 1495 | void tcp_fastopen_init_key_once(bool publish); |
1496 | bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss, | ||
1497 | struct tcp_fastopen_cookie *cookie); | ||
1496 | #define TCP_FASTOPEN_KEY_LENGTH 16 | 1498 | #define TCP_FASTOPEN_KEY_LENGTH 16 |
1497 | 1499 | ||
1498 | /* Fastopen key context */ | 1500 | /* Fastopen key context */ |