diff options
author | Eric Dumazet <edumazet@google.com> | 2012-07-17 04:13:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-17 04:36:20 -0400 |
commit | 282f23c6ee343126156dd41218b22ece96d747e3 (patch) | |
tree | 9a306d99ed77d760078d29699edd3007507d709b /include/linux/snmp.h | |
parent | a858d64b7709ca7bd2ee71d66ef3b7190cdcbb7d (diff) |
tcp: implement RFC 5961 3.2
Implement the RFC 5691 mitigation against Blind
Reset attack using RST bit.
Idea is to validate incoming RST sequence,
to match RCV.NXT value, instead of previouly accepted
window : (RCV.NXT <= SEG.SEQ < RCV.NXT+RCV.WND)
If sequence is in window but not an exact match, send
a "challenge ACK", so that the other part can resend an
RST with the appropriate sequence.
Add a new sysctl, tcp_challenge_ack_limit, to limit
number of challenge ACK sent per second.
Add a new SNMP counter to count number of challenge acks sent.
(netstat -s | grep TCPChallengeACK)
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/linux/snmp.h')
-rw-r--r-- | include/linux/snmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/snmp.h b/include/linux/snmp.h index 6e4c51123828..673e0e928b2b 100644 --- a/include/linux/snmp.h +++ b/include/linux/snmp.h | |||
@@ -237,6 +237,7 @@ enum | |||
237 | LINUX_MIB_TCPOFOQUEUE, /* TCPOFOQueue */ | 237 | LINUX_MIB_TCPOFOQUEUE, /* TCPOFOQueue */ |
238 | LINUX_MIB_TCPOFODROP, /* TCPOFODrop */ | 238 | LINUX_MIB_TCPOFODROP, /* TCPOFODrop */ |
239 | LINUX_MIB_TCPOFOMERGE, /* TCPOFOMerge */ | 239 | LINUX_MIB_TCPOFOMERGE, /* TCPOFOMerge */ |
240 | LINUX_MIB_TCPCHALLENGEACK, /* TCPChallengeACK */ | ||
240 | __LINUX_MIB_MAX | 241 | __LINUX_MIB_MAX |
241 | }; | 242 | }; |
242 | 243 | ||