]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: reject meta nfproto outside of inet family
authorFlorian Westphal <fw@strlen.de>
Fri, 16 Jun 2017 19:18:45 +0000 (21:18 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 18 Jun 2017 21:28:57 +0000 (23:28 +0200)
commitfda79e96bcaa5fc927523b582bfc42c8ad22deca
treeac5060ff4c428e80a6b7e4bd430315a292e5ceb2
parent7e1ff143442c6c9428f2a1cdb7c751216407437c
evaluate: reject meta nfproto outside of inet family

meta nfproto loads the hook family type of the current rule context
in the kernel, i.e. it will be NFPROTO_IPV6 for ip6 family,
NFPROTO_BRIDGE for bridge and so on.

The only case where this is useful is the inet pseudo family,
where this is useful to determine the real hook family
(NFPROTO_IPV4 or NFPROTO_IPV6).

In all other families 'meta nfproto' is either always true or false.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.xml
src/evaluate.c