summaryrefslogtreecommitdiffstats
path: root/include/set.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2020-12-12 20:16:53 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2020-12-17 15:38:41 +0100
commit3469f09286ceeb041dd74e4b145d26620f314587 (patch)
treee0dc114b00904c0dc977a2ebeb27c054c1efe008 /include/set.h
parent7d010b8f5b769328ae21ad71a3d583d9859fde2c (diff)
src: add NFTNL_SET_EXPRESSIONS
NFTNL_SET_EXPR defines the stateful expression type that this set stores in each element. This provides the set definition in terms of stateful expressions. The expression that is passed via NFNTL_SET_ELEM_EXPR must equal to this set stateful expression type, otherwise the kernel bails out. This patch adds support for the set expression list, which generalizes NFTNL_SET_EXPR. This patch also adds nftnl_set_add_expr() to add new expressions to a set and nftnl_set_elem_expr_foreach() to iterate over the list of expressions. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/set.h')
-rw-r--r--include/set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/set.h b/include/set.h
index 66ac129..55018b6 100644
--- a/include/set.h
+++ b/include/set.h
@@ -33,7 +33,7 @@ struct nftnl_set {
uint32_t flags;
uint32_t gc_interval;
uint64_t timeout;
- struct nftnl_expr *expr;
+ struct list_head expr_list;
};
struct nftnl_set_list;