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:03:48 +0000 (09:03 -0800)
commitab5c718d0fd643ba6f2112235e12ea5222f4edf3
tree02a32971cc7cc44623e78292bf54b2056268dbf3
parent86791bbfe5ed7b275be040cfeff049a1624af1b7
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