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)
commit4d0fe50c75a547088e4304e5eb5f521514dfae46
treee1415bc9f01700ee8e0182de1a5550b8d0bf345c
parent15ac2b08a2fd0f4aacbe8ae39788252fea6fbe63
ipv6: tcp: fix tcp_v6_conn_request()

Since linux 2.6.26 (commit c6aefafb7ec6 : 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