netfilter: xt_hashlimit: use _ALL macro to reject unknown flag bits
authorFlorian Westphal <fw@strlen.de>
Thu, 10 May 2012 22:11:54 +0000 (22:11 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 16 May 2012 22:56:31 +0000 (00:56 +0200)
commit1f27e2516c1d95ae19024bec5be68a3f489cc47e
tree9eeb1a8d5b8248ec36602198aeafaf9e07e7fcc5
parent6d8823db422ae6719c7840fe11f737a40ffe4993
netfilter: xt_hashlimit: use _ALL macro to reject unknown flag bits

David Miller says:
     The canonical way to validate if the set bits are in a valid
     range is to have a "_ALL" macro, and test:
     if (val & ~XT_HASHLIMIT_ALL)
         goto err;"

make it so.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/xt_hashlimit.h
net/netfilter/xt_hashlimit.c