diff options
author | Eric Dumazet <edumazet@google.com> | 2016-08-24 11:50:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-25 19:43:11 -0400 |
commit | e65c332de8a0c9f570847ec490b60effffcd5320 (patch) | |
tree | d0e4808dc464c2ac1b3914c8a49ee95a1b11e1ff /net/ipv6/tcp_ipv6.c | |
parent | bb40aca7cf153e3e2941140d3850a4b6c4205ccb (diff) |
tcp: md5: increment sk_drops on syn_recv state
TCP MD5 mismatches do increment sk_drops counter in all states but
SYN_RECV.
This is very unlikely to happen in the real world, but worth adding
to help diagnostics.
We increase the parent (listener) sk_drops.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index e0f46439e391..ac0ed7bda406 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1409,6 +1409,7 @@ process: | |||
1409 | sk = req->rsk_listener; | 1409 | sk = req->rsk_listener; |
1410 | tcp_v6_fill_cb(skb, hdr, th); | 1410 | tcp_v6_fill_cb(skb, hdr, th); |
1411 | if (tcp_v6_inbound_md5_hash(sk, skb)) { | 1411 | if (tcp_v6_inbound_md5_hash(sk, skb)) { |
1412 | sk_drops_add(sk, skb); | ||
1412 | reqsk_put(req); | 1413 | reqsk_put(req); |
1413 | goto discard_it; | 1414 | goto discard_it; |
1414 | } | 1415 | } |