From cdaea7f1ced052581e26993dde10db371fcf9de3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 19 Feb 2018 17:20:23 +0100 Subject: flowtable: allow to specify size This new attribute allows you to specify the flowtable size. Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/flowtable.h | 1 + include/linux/netfilter/nf_tables.h | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/libnftnl/flowtable.h b/include/libnftnl/flowtable.h index 0f8f325..06b06a6 100644 --- a/include/libnftnl/flowtable.h +++ b/include/libnftnl/flowtable.h @@ -25,6 +25,7 @@ enum nftnl_flowtable_attr { NFTNL_FLOWTABLE_PRIO = 4, NFTNL_FLOWTABLE_USE, NFTNL_FLOWTABLE_DEVICES, + NFTNL_FLOWTABLE_SIZE, __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 ede8c4d..3f72520 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -1328,6 +1328,8 @@ enum nft_object_attributes { * @NFTA_FLOWTABLE_NAME: name of this flow table (NLA_STRING) * @NFTA_FLOWTABLE_HOOK: netfilter hook configuration(NLA_U32) * @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) */ enum nft_flowtable_attributes { NFTA_FLOWTABLE_UNSPEC, @@ -1335,6 +1337,9 @@ enum nft_flowtable_attributes { NFTA_FLOWTABLE_NAME, NFTA_FLOWTABLE_HOOK, NFTA_FLOWTABLE_USE, + NFTA_FLOWTABLE_HANDLE, + NFTA_FLOWTABLE_PAD, + NFTA_FLOWTABLE_SIZE, __NFTA_FLOWTABLE_MAX }; #define NFTA_FLOWTABLE_MAX (__NFTA_FLOWTABLE_MAX - 1) -- cgit v1.2.3