summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorWei Wang2017-01-23 19:59:20 +0100
committerDavid S. Miller2017-01-25 20:04:38 +0100
commit065263f40f0972d5f1cd294bb0242bd5aa5f06b2 (patch)
treec8d7915e4b9cb64a7e069b2842897af5b5c73f85 /include/net/tcp.h
parentr8152: fix the wrong spelling (diff)
downloadkernel-qcow2-linux-065263f40f0972d5f1cd294bb0242bd5aa5f06b2.tar.gz
kernel-qcow2-linux-065263f40f0972d5f1cd294bb0242bd5aa5f06b2.tar.xz
kernel-qcow2-linux-065263f40f0972d5f1cd294bb0242bd5aa5f06b2.zip
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.h2
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,
struct tcp_fastopen_cookie *foc,
struct dst_entry *dst);
void tcp_fastopen_init_key_once(bool publish);
+bool tcp_fastopen_cookie_check(struct sock *sk, u16 *mss,
+ struct tcp_fastopen_cookie *cookie);
#define TCP_FASTOPEN_KEY_LENGTH 16
/* Fastopen key context */