]> git.karo-electronics.de Git - linux-beck.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)
commit3a19ce0eec32667b835d8dc887002019fc6b3a02
treea5e44c9427f0c6a5cb0e6252e3ccbd5ef4f7a50e
parent0a672f74131dd682087dfd5f45bf61f95804772e
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