diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-07-14 10:41:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-07-24 12:49:13 +0200 |
commit | ff629597aa2c54a674fd5b4141d6038e9ecd44e3 (patch) | |
tree | 027e5f22787b0a8fc7fd017f01418aec7de1fdc4 /src/internal.h | |
parent | 367cbfaae87c1f539c729b0653d920701beac3be (diff) |
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 <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdint.h> #include <stdbool.h> #include <libnftnl/common.h> +#include <linux/netfilter/nf_tables.h> #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; |