summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-11-27 23:27:04 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-12-09 14:50:53 +0100
commitf5f62341e21644b42554f84e4893341ac989e833 (patch)
tree7ee3746af528a47b6f17003d110bee55d6f565dc /include
parentb4edb4fc558ac177b66a867fa058c7624840d895 (diff)
set: add NFTNL_SET_OBJ_TYPE attribute
This new attribute specifies the stateful object type this set stores. Similar to data type, but specific to store objects. You must set the NFT_SET_OBJECT flag to use this. 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.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/libnftnl/set.h b/include/libnftnl/set.h
index adeb16c..0c978d9 100644
--- a/include/libnftnl/set.h
+++ b/include/libnftnl/set.h
@@ -23,6 +23,7 @@ enum nftnl_set_attr {
NFTNL_SET_TIMEOUT,
NFTNL_SET_GC_INTERVAL,
NFTNL_SET_USERDATA,
+ NFTNL_SET_OBJ_TYPE,
__NFTNL_SET_MAX
};
#define NFTNL_SET_MAX (__NFTNL_SET_MAX - 1)
diff --git a/include/set.h b/include/set.h
index 85bd389..c6deb73 100644
--- a/include/set.h
+++ b/include/set.h
@@ -14,6 +14,7 @@ struct nftnl_set {
uint32_t key_len;
uint32_t data_type;
uint32_t data_len;
+ uint32_t obj_type;
struct {
void *data;
uint32_t len;