diff options
author | Eric Dumazet <edumazet@google.com> | 2012-07-16 21:41:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-17 10:40:46 -0400 |
commit | 0c24604b68fc7810d429d6c3657b6f148270e528 (patch) | |
tree | f5dd9deb10cfbcf8742483ecda7d07899ccb57f9 /include | |
parent | 5f3600ebe252aa5fe782e9f9115c66c639f62ac0 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/snmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/snmp.h b/include/linux/snmp.h index 673e0e928b2b..e5fcbd079e4a 100644 --- a/include/linux/snmp.h +++ b/include/linux/snmp.h | |||
@@ -208,7 +208,6 @@ enum | |||
208 | LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */ | 208 | LINUX_MIB_TCPDSACKOFOSENT, /* TCPDSACKOfoSent */ |
209 | LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */ | 209 | LINUX_MIB_TCPDSACKRECV, /* TCPDSACKRecv */ |
210 | LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */ | 210 | LINUX_MIB_TCPDSACKOFORECV, /* TCPDSACKOfoRecv */ |
211 | LINUX_MIB_TCPABORTONSYN, /* TCPAbortOnSyn */ | ||
212 | LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */ | 211 | LINUX_MIB_TCPABORTONDATA, /* TCPAbortOnData */ |
213 | LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */ | 212 | LINUX_MIB_TCPABORTONCLOSE, /* TCPAbortOnClose */ |
214 | LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */ | 213 | LINUX_MIB_TCPABORTONMEMORY, /* TCPAbortOnMemory */ |
@@ -238,6 +237,7 @@ enum | |||
238 | LINUX_MIB_TCPOFODROP, /* TCPOFODrop */ | 237 | LINUX_MIB_TCPOFODROP, /* TCPOFODrop */ |
239 | LINUX_MIB_TCPOFOMERGE, /* TCPOFOMerge */ | 238 | LINUX_MIB_TCPOFOMERGE, /* TCPOFOMerge */ |
240 | LINUX_MIB_TCPCHALLENGEACK, /* TCPChallengeACK */ | 239 | LINUX_MIB_TCPCHALLENGEACK, /* TCPChallengeACK */ |
240 | LINUX_MIB_TCPSYNCHALLENGE, /* TCPSYNChallenge */ | ||
241 | __LINUX_MIB_MAX | 241 | __LINUX_MIB_MAX |
242 | }; | 242 | }; |
243 | 243 | ||