]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: IPv6 support for fastopen server
authorDaniel Lee <longinus00@gmail.com>
Mon, 12 May 2014 03:22:13 +0000 (20:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2014 21:53:03 +0000 (17:53 -0400)
commit19aef589b0107b412686163a3bbc7d39a1d4bdd4
treea5e44c9427f0c6a5cb0e6252e3ccbd5ef4f7a50e
parentdca430d88f5ce328d9569178dd3c4d2a50ec46e4
tcp: IPv6 support for fastopen server

After all the preparatory works, supporting IPv6 in Fast Open is now easy.
We pretty much just mirror v4 code. The only difference is how we
generate the Fast Open cookie for IPv6 sockets. Since Fast Open cookie
is 128 bits and we use AES 128, we use CBC-MAC to encrypt both the
source and destination IPv6 addresses since the cookie is a MAC tag.

Signed-off-by: Daniel Lee <longinus00@gmail.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Jerry Chu <hkchu@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_fastopen.c
net/ipv6/tcp_ipv6.c