]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add server ip to encrypt cookie in fast open
authorYuchung Cheng <ycheng@google.com>
Thu, 8 Aug 2013 21:06:22 +0000 (14:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Aug 2013 07:35:33 +0000 (00:35 -0700)
commitf9f9d73587565644e9a88272c5673cbd2ac4197a
tree693d54479d3377a5b4bd7ddfb61394f26706defd
parent3e740aef0294d234a43951bce024e41a11052a28
tcp: add server ip to encrypt cookie in fast open

Encrypt the cookie with both server and client IPv4 addresses,
such that multi-homed server will grant different cookies
based on both the source and destination IPs. No client change
is needed since cookie is opaque to the client.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_fastopen.c
net/ipv4/tcp_ipv4.c