From ff629597aa2c54a674fd5b4141d6038e9ecd44e3 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Mon, 14 Jul 2014 10:41:26 +0200 Subject: set: add support for set mechanism selection This patch adds support to select the set mechanism. The kernel support was added in commit: c50b960 netfilter: nf_tables: implement proper set selection Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index 7b848db..e76a5cb 100644 --- a/src/internal.h +++ b/src/internal.h @@ -14,6 +14,7 @@ #include #include #include +#include #define BASE_DEC 10 #define BASE_HEX 16 @@ -168,6 +169,10 @@ struct nft_set { uint32_t data_type; uint32_t data_len; uint32_t id; + enum nft_set_policies policy; + struct { + uint32_t size; + } desc; struct list_head element_list; uint32_t flags; -- cgit v1.2.3