tcp: implement RFC 5961 4.2
authorEric Dumazet <edumazet@google.com>
Tue, 17 Jul 2012 01:41:30 +0000 (01:41 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:25 +0000 (01:13 +0000)
commit481079c4df95e11d3893b92fa4000f58e1cd713b
tree39c094a753e99e1ae761af88f1ae1067179e17af
parent61f69dc4e40e41b0018f00fa4aeb23d3239556fb
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: Ben Hutchings <ben@decadent.org.uk>
include/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_input.c