diff options
author | Yuchung Cheng <ycheng@google.com> | 2017-10-18 20:22:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-20 14:21:36 +0200 |
commit | 1fba70e5b6bed53496ba1f1f16127f5be01b5fb6 (patch) | |
tree | 22b060a68ca7b36f052b8f943c91c7ba78b8ddcf /include/net/request_sock.h | |
parent | Merge branch 'mlxsw-extack' (diff) | |
download | linux-1fba70e5b6bed53496ba1f1f16127f5be01b5fb6.tar.xz linux-1fba70e5b6bed53496ba1f1f16127f5be01b5fb6.zip |
tcp: socket option to set TCP fast open key
New socket option TCP_FASTOPEN_KEY to allow different keys per
listener. The listener by default uses the global key until the
socket option is set. The key is a 16 bytes long binary data. This
option has no effect on regular non-listener TCP sockets.
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r-- | include/net/request_sock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h index 23e22054aa60..347015515a7d 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h @@ -150,6 +150,8 @@ struct fastopen_queue { spinlock_t lock; int qlen; /* # of pending (TCP_SYN_RECV) reqs */ int max_qlen; /* != 0 iff TFO is currently enabled */ + + struct tcp_fastopen_context __rcu *ctx; /* cipher context for cookie */ }; /** struct request_sock_queue - queue of request_socks |