tcp: md5: increment sk_drops on syn_recv state
authorEric Dumazet <edumazet@google.com>
Wed, 24 Aug 2016 15:50:24 +0000 (08:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Aug 2016 23:43:11 +0000 (16:43 -0700)
commite65c332de8a0c9f570847ec490b60effffcd5320
treed0e4808dc464c2ac1b3914c8a49ee95a1b11e1ff
parentbb40aca7cf153e3e2941140d3850a4b6c4205ccb
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>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c