aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorYuchung Cheng <ycheng@google.com>2014-05-11 23:22:09 -0400
committerDavid S. Miller <davem@davemloft.net>2014-05-13 17:53:02 -0400
commit5b7ed0892f2af4e60b9a8d2c71c77774512a6cb9 (patch)
tree39c6fa6e97446aafb67a51de9d6624788b334c2a /include/net/tcp.h
parent4b9734e547aaa947e56480ecf6d509cf9cc307cc (diff)
tcp: move fastopen functions to tcp_fastopen.c
Move common TFO functions that will be used by both v4 and v6 to tcp_fastopen.c. Create a helper tcp_fastopen_queue_check(). Signed-off-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: Daniel Lee <longinus00@gmail.com> Signed-off-by: Jerry Chu <hkchu@google.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 3c9418456640..012236838583 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1329,8 +1329,14 @@ void tcp_free_fastopen_req(struct tcp_sock *tp);
1329 1329
1330extern struct tcp_fastopen_context __rcu *tcp_fastopen_ctx; 1330extern struct tcp_fastopen_context __rcu *tcp_fastopen_ctx;
1331int tcp_fastopen_reset_cipher(void *key, unsigned int len); 1331int tcp_fastopen_reset_cipher(void *key, unsigned int len);
1332void tcp_fastopen_cookie_gen(__be32 src, __be32 dst, 1332int tcp_fastopen_create_child(struct sock *sk,
1333 struct tcp_fastopen_cookie *foc); 1333 struct sk_buff *skb,
1334 struct sk_buff *skb_synack,
1335 struct request_sock *req);
1336bool tcp_fastopen_check(struct sock *sk, struct sk_buff *skb,
1337 struct request_sock *req,
1338 struct tcp_fastopen_cookie *foc,
1339 struct tcp_fastopen_cookie *valid_foc);
1334void tcp_fastopen_init_key_once(bool publish); 1340void tcp_fastopen_init_key_once(bool publish);
1335#define TCP_FASTOPEN_KEY_LENGTH 16 1341#define TCP_FASTOPEN_KEY_LENGTH 16
1336 1342