diff options
| author | Yuchung Cheng <[email protected]> | 2017-10-18 18:22:51 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-20 12:21:36 +0000 |
| commit | 1fba70e5b6bed53496ba1f1f16127f5be01b5fb6 (patch) | |
| tree | 22b060a68ca7b36f052b8f943c91c7ba78b8ddcf /net/ipv4/tcp_ipv4.c | |
| parent | Merge branch 'mlxsw-extack' (diff) | |
| download | kernel-1fba70e5b6bed53496ba1f1f16127f5be01b5fb6.tar.gz kernel-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 <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: Christoph Paasch <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index ecee4ddb24c5..28ca4e177047 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1893,6 +1893,7 @@ void tcp_v4_destroy_sock(struct sock *sk) /* If socket is aborted during connect operation */ tcp_free_fastopen_req(tp); + tcp_fastopen_destroy_cipher(sk); tcp_saved_syn_free(tp); sk_sockets_allocated_dec(sk); |
