diff options
author | Florian Westphal <fw@strlen.de> | 2017-02-03 13:35:48 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-02-08 14:16:22 +0100 |
commit | ab23821f7ecfb022a4aec78fb6f4fd0f6aa1ccab (patch) | |
tree | 9ae374aa3a2cdd518813aebbc32f8a808135eec7 | |
parent | 665153ff575207f3a092cfcea3c51238612a7b58 (diff) |
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>
-rw-r--r-- | include/uapi/linux/netfilter/nf_tables.h | 2 | ||||
-rw-r--r-- | net/netfilter/nft_ct.c | 22 |
2 files changed, 21 insertions, 3 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h |