]> 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)
commit15a2ab0295249b7aba3ebed8e13ee93cbcd9970d
treee1415bc9f01700ee8e0182de1a5550b8d0bf345c
parent0741a03380e5f3367d11530e42de3d76bf0a6acf
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