From 7d010b8f5b769328ae21ad71a3d583d9859fde2c Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sat, 12 Dec 2020 20:13:07 +0100 Subject: src: add NFTNL_SET_ELEM_EXPRESSIONS NFTNL_SET_ELEM_EXPR defines the stateful expression type that this element stores. This is useful to restore runtime set element stateful expressions (when saving, then reboot and restore). This patch adds support for the set element expression list, which generalizes NFTNL_SET_ELEM_EXPR. This patch also adds nftnl_set_elem_add_expr() to add new expressions to set elements and nftnl_set_elem_expr_foreach() to iterate over the list of expressions. Signed-off-by: Pablo Neira Ayuso --- src/libnftnl.map | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libnftnl.map') diff --git a/src/libnftnl.map b/src/libnftnl.map index 2d35ace..ce1c082 100644 --- a/src/libnftnl.map +++ b/src/libnftnl.map @@ -374,3 +374,8 @@ LIBNFTNL_15 { nftnl_expr_build_payload; nftnl_rule_del_expr; } LIBNFTNL_14; + +LIBNFTNL_16 { + nftnl_set_elem_add_expr; + nftnl_set_elem_expr_foreach; +} LIBNFTNL_15; -- cgit v1.2.3