From 3469f09286ceeb041dd74e4b145d26620f314587 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 12 Dec 2020 20:16:53 +0100 Subject: 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 --- src/libnftnl.map | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libnftnl.map') diff --git a/src/libnftnl.map b/src/libnftnl.map index ce1c082..7078a5d 100644 --- a/src/libnftnl.map +++ b/src/libnftnl.map @@ -376,6 +376,8 @@ LIBNFTNL_15 { } LIBNFTNL_14; LIBNFTNL_16 { + nftnl_set_add_expr; + nftnl_set_expr_foreach; nftnl_set_elem_add_expr; nftnl_set_elem_expr_foreach; } LIBNFTNL_15; -- cgit v1.2.3