From ba51b154ce5f69c8a24641b4358d0833381f0897 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 14 Jan 2016 04:53:31 +0100 Subject: src: ct: add packet and byte counter support Signed-off-by: Florian Westphal Acked-by: Pablo Neira Ayuso --- src/expr/ct.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/expr/ct.c b/src/expr/ct.c index 584dffe..4bee6b1 100644 --- a/src/expr/ct.c +++ b/src/expr/ct.c @@ -32,7 +32,7 @@ struct nftnl_expr_ct { #define IP_CT_DIR_REPLY 1 #ifndef NFT_CT_MAX -#define NFT_CT_MAX (NFT_CT_LABELS + 1) +#define NFT_CT_MAX (NFT_CT_BYTES + 1) #endif static int @@ -167,6 +167,8 @@ const char *ctkey2str_array[NFT_CT_MAX] = { [NFT_CT_PROTO_SRC] = "proto_src", [NFT_CT_PROTO_DST] = "proto_dst", [NFT_CT_LABELS] = "label", + [NFT_CT_PKTS] = "packets", + [NFT_CT_BYTES] = "bytes", }; static const char *ctkey2str(uint32_t ctkey) -- cgit v1.2.3