]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: tcp: fix tcp_v6_conn_request()
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Nov 2011 22:29:23 +0000 (17:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Nov 2011 22:29:23 +0000 (17:29 -0500)
commitbe846a94524d798ce8493e6e3bc60462e794528e
treee1415bc9f01700ee8e0182de1a5550b8d0bf345c
parent1e33e831fa61973475751d532c983229897b84cf
ipv6: tcp: fix tcp_v6_conn_request()

Since linux 2.6.26 (commit 921a0ecccf77 : Add IPv6 support to TCP SYN
cookies), we can drop a SYN packet reusing a TIME_WAIT socket.

(As a matter of fact we fail to send the SYNACK answer)

As the client resends its SYN packet after a one second timeout, we
accept it, because first packet removed the TIME_WAIT socket before
being dropped.

This probably explains why nobody ever noticed or complained.

Reported-by: Jesse Young <jlyo@jlyo.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c