tcp: implement RFC 5961 4.2
authorEric Dumazet <edumazet@google.com>
Tue, 17 Jul 2012 01:41:30 +0000 (01:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:07:15 +0000 (09:07 -0800)
commitd21383fcbb535f90b429279852988d675ed22d67
tree7f395982de610bfc355082ae351deb01a19a5060
parent34fb350281ced2a72707a5c0064f69992d440edb
tcp: implement RFC 5961 4.2

[ Upstream commit 0c24604b68fc7810d429d6c3657b6f148270e528 ]

Implement the RFC 5691 mitigation against Blind
Reset attack using SYN bit.

Section 4.2 of RFC 5961 advises to send a Challenge ACK and drop
incoming packet, instead of resetting the session.

Add a new SNMP counter to count number of challenge acks sent
in response to SYN packets.
(netstat -s | grep TCPSYNChallenge)

Remove obsolete TCPAbortOnSyn, since we no longer abort a TCP session
because of a SYN flag.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Kiran Kumar Kella <kkiran@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_input.c