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)
commit149479d019e06df5a7f4096f95c00cfb1380309c
tree693d54479d3377a5b4bd7ddfb61394f26706defd
parent469230d118dc0822f6bf46c75ab147fa9f00741f
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