]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit641c853b3ce432a2ea2f56ea99577a2802beb856
tree9eeb1a8d5b8248ec36602198aeafaf9e07e7fcc5
parentee7852a600d9c38bc2fb69850a776013b959e1a9
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