]> 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)
commit7beddbda1c87d60475b2bfab8e0a9a12771db61d
treea5e44c9427f0c6a5cb0e6252e3ccbd5ef4f7a50e
parent361ded5ddd845bdad896bd0ca232fb6482925922
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