From effb75d1f60a46af62fed244a6243bcd4e34a75e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 27 Nov 2016 23:27:07 +0100 Subject: set_elem: add NFTNL_SET_ELEM_OBJREF attribute This new attribute allows us to attach stateful objects to elements for map lookups. This new attribute identifies the object through its name. Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/set.h | 1 + include/set_elem.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/libnftnl/set.h b/include/libnftnl/set.h index 0c978d9..4c59ab2 100644 --- a/include/libnftnl/set.h +++ b/include/libnftnl/set.h @@ -96,6 +96,7 @@ enum { NFTNL_SET_ELEM_EXPIRATION, NFTNL_SET_ELEM_USERDATA, NFTNL_SET_ELEM_EXPR, + NFTNL_SET_ELEM_OBJREF, }; struct nftnl_set_elem; diff --git a/include/set_elem.h b/include/set_elem.h index 60cecc9..d6244e6 100644 --- a/include/set_elem.h +++ b/include/set_elem.h @@ -12,6 +12,7 @@ struct nftnl_set_elem { uint32_t flags; uint64_t timeout; uint64_t expiration; + const char *objref; struct { void *data; uint32_t len; -- cgit v1.2.3