]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
src: ct: add zone support
authorFlorian Westphal <fw@strlen.de>
Tue, 17 Jan 2017 13:54:12 +0000 (14:54 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 19 Feb 2017 21:40:36 +0000 (22:40 +0100)
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/expr/ct.c

index d3d352e9f959e2c60858a7535dd5590ad9259daa..cdd08e95c86cca1261272beca6889eab87dfd636 100644 (file)
@@ -32,7 +32,7 @@ struct nftnl_expr_ct {
 #define IP_CT_DIR_REPLY                1
 
 #ifndef NFT_CT_MAX
-#define NFT_CT_MAX (NFT_CT_AVGPKT + 1)
+#define NFT_CT_MAX (NFT_CT_ZONE + 1)
 #endif
 
 static int
@@ -170,6 +170,7 @@ static const char *ctkey2str_array[NFT_CT_MAX] = {
        [NFT_CT_PKTS]           = "packets",
        [NFT_CT_BYTES]          = "bytes",
        [NFT_CT_AVGPKT]         = "avgpkt",
+       [NFT_CT_ZONE]           = "zone",
 };
 
 static const char *ctkey2str(uint32_t ctkey)