summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2014-02-16 20:13:04 +0100
committerFlorian Westphal <fw@strlen.de>2014-02-18 22:28:33 +0100
commit19c3da8e70d32818b7267fc63b44441295e69567 (patch)
treeb6c11075fda4bb04b52c90c30cc4f7a837ebb1c9 /src
parent22d1247a9c86e7c3c3e7dd808102724b3edd7ab3 (diff)
expr: add conntrack label match support
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
-rw-r--r--src/expr/ct.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/expr/ct.c b/src/expr/ct.c
index 2df761c..4c18dde 100644
--- a/src/expr/ct.c
+++ b/src/expr/ct.c
@@ -33,7 +33,7 @@ struct nft_expr_ct {
#define IP_CT_DIR_REPLY 1
#ifndef NFT_CT_MAX
-#define NFT_CT_MAX (NFT_CT_PROTO_DST + 1)
+#define NFT_CT_MAX (NFT_CT_LABEL + 1)
#endif
static int
@@ -170,7 +170,8 @@ const char *ctkey2str_array[NFT_CT_MAX] = {
[NFT_CT_SRC] = "src",
[NFT_CT_DST] = "dst",
[NFT_CT_PROTO_SRC] = "proto_src",
- [NFT_CT_PROTO_DST] = "proto_dst"
+ [NFT_CT_PROTO_DST] = "proto_dst",
+ [NFT_CT_LABEL] = "label",
};
static const char *ctkey2str(uint32_t ctkey)