netfilter: nft_ct: add zone id get support
authorFlorian Westphal <fw@strlen.de>
Fri, 3 Feb 2017 12:35:48 +0000 (13:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Feb 2017 13:16:22 +0000 (14:16 +0100)
commitab23821f7ecfb022a4aec78fb6f4fd0f6aa1ccab
tree9ae374aa3a2cdd518813aebbc32f8a808135eec7
parent665153ff575207f3a092cfcea3c51238612a7b58
netfilter: nft_ct: add zone id get support

Just like with counters the direction attribute is optional.
We set priv->dir to MAX unconditionally to avoid duplicating the assignment
for all keys with optional direction.

For keys where direction is mandatory, existing code already returns
an error.

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