tcp: socket option to set TCP fast open key
authorYuchung Cheng <ycheng@google.com>
Wed, 18 Oct 2017 18:22:51 +0000 (11:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:21:36 +0000 (13:21 +0100)
commit1fba70e5b6bed53496ba1f1f16127f5be01b5fb6
tree22b060a68ca7b36f052b8f943c91c7ba78b8ddcf
parentce12f7ddff2df63b8f9abf33d6fe020e35de4059
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>
include/net/request_sock.h
include/net/tcp.h
include/uapi/linux/tcp.h
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp.c
net/ipv4/tcp_fastopen.c
net/ipv4/tcp_ipv4.c