tcp: implement RFC 5961 4.2
authorEric Dumazet <edumazet@google.com>
Tue, 17 Jul 2012 01:41:30 +0000 (01:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jul 2012 14:40:46 +0000 (07:40 -0700)
commit0c24604b68fc7810d429d6c3657b6f148270e528
treef5dd9deb10cfbcf8742483ecda7d07899ccb57f9
parent5f3600ebe252aa5fe782e9f9115c66c639f62ac0
tcp: implement RFC 5961 4.2

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>
include/linux/snmp.h
net/ipv4/proc.c
net/ipv4/tcp_input.c