From 41fe3d38ba34b018e63ce75dc04c5db416293258 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 19 Feb 2018 09:20:23 +0100 Subject: flowtable: support for flags This new attribute allows you to specify the flowtable flags. Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/flowtable.h | 1 + include/linux/netfilter/nf_tables.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/libnftnl/flowtable.h b/include/libnftnl/flowtable.h index 06b06a6..6f68018 100644 --- a/include/libnftnl/flowtable.h +++ b/include/libnftnl/flowtable.h @@ -26,6 +26,7 @@ enum nftnl_flowtable_attr { NFTNL_FLOWTABLE_USE, NFTNL_FLOWTABLE_DEVICES, NFTNL_FLOWTABLE_SIZE, + NFTNL_FLOWTABLE_FLAGS, __NFTNL_FLOWTABLE_MAX }; #define NFTNL_FLOWTABLE_MAX (__NFTNL_FLOWTABLE_MAX - 1) diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index 3f72520..a842d2e 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -1330,6 +1330,7 @@ enum nft_object_attributes { * @NFTA_FLOWTABLE_USE: number of references to this flow table (NLA_U32) * @NFTA_FLOWTABLE_HANDLE: object handle (NLA_U64) * @NFTA_FLOWTABLE_SIZE: maximum size (NLA_U32) + * @NFTA_FLOWTABLE_FLAGS: flags (NLA_U32) */ enum nft_flowtable_attributes { NFTA_FLOWTABLE_UNSPEC, @@ -1340,6 +1341,7 @@ enum nft_flowtable_attributes { NFTA_FLOWTABLE_HANDLE, NFTA_FLOWTABLE_PAD, NFTA_FLOWTABLE_SIZE, + NFTA_FLOWTABLE_FLAGS, __NFTA_FLOWTABLE_MAX }; #define NFTA_FLOWTABLE_MAX (__NFTA_FLOWTABLE_MAX - 1) -- cgit v1.2.3