summaryrefslogtreecommitdiffstats
path: root/src/netlink.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-04-13 04:01:09 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2022-04-13 13:43:46 +0200
commitf1cc44edb2182ce745d008cc6932afad165d02c6 (patch)
tree83a4b9b5c84d828ab9240d9a61cd01c5de93f1db /src/netlink.c
parentad43b84e1942dd171d6e78c7717495e7186e8307 (diff)
src: add EXPR_F_KERNEL to identify expression in the kernel
This allows to identify the set elements that reside in the kernel. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netlink.c b/src/netlink.c
index 775c6f51..24a9ad98 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -1286,6 +1286,7 @@ key_end:
}
expr = set_elem_expr_alloc(&netlink_location, key);
+ expr->flags |= EXPR_F_KERNEL;
if (nftnl_set_elem_is_set(nlse, NFTNL_SET_ELEM_TIMEOUT))
expr->timeout = nftnl_set_elem_get_u64(nlse, NFTNL_SET_ELEM_TIMEOUT);