]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcp: fix TCP_MAXSEG for established IPv6 passive sockets
authorNeal Cardwell <ncardwell@google.com>
Sun, 22 Apr 2012 09:45:47 +0000 (09:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:17:05 +0000 (10:17 -0700)
commit069d2955aa39b11764025031235ec3d7d215ce84
tree8e59c7a4ca24b6033d9c20a6324e0ad4021e92c5
parent0bcc60d6527fde19ce2ccff7bc3eaba5209a6693
tcp: fix TCP_MAXSEG for established IPv6 passive sockets

[ Upstream commit d135c522f1234f62e81be29cebdf59e9955139ad ]

Commit f5fff5d forgot to fix TCP_MAXSEG behavior IPv6 sockets, so IPv6
TCP server sockets that used TCP_MAXSEG would find that the advmss of
child sockets would be incorrect. This commit mirrors the advmss logic
from tcp_v4_syn_recv_sock in tcp_v6_syn_recv_sock. Eventually this
logic should probably be shared between IPv4 and IPv6, but this at
least fixes this issue.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/tcp_ipv6.c