summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-11-27 23:27:07 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-12-09 14:50:53 +0100
commiteffb75d1f60a46af62fed244a6243bcd4e34a75e (patch)
treedb5b14dde9d3d557b4e3f1d2351202a6c7a6c8f9 /include
parentf5f62341e21644b42554f84e4893341ac989e833 (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnftnl/set.h1
-rw-r--r--include/set_elem.h1
2 files changed, 2 insertions, 0 deletions
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;