syncookies: only increment SYNCOOKIESFAILED on validation error
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Oct 2014 01:55:38 +0000 (02:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Oct 2014 20:53:39 +0000 (16:53 -0400)
commit646697b9e3fef913bb6393ebfb6115c442a96be7
treebaa2ad2fb7b968b1fec4f11d59949160f93938de
parentf5fbf115691c350f88bae103f629503e201a7bff
syncookies: only increment SYNCOOKIESFAILED on validation error

Only count packets that failed cookie-authentication.
We can get SYNCOOKIESFAILED > 0 while we never even sent a single cookie.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/syncookies.c
net/ipv6/syncookies.c