summaryrefslogtreecommitdiffstats
path: root/include/obj.h
diff options
context:
space:
mode:
authorJose M. Guisado Gomez <guigom@riseup.net>2020-09-02 11:12:40 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2020-09-08 16:39:23 +0200
commite0dfd0df703f6eb5a3f2a73cd63914057ca4a4a0 (patch)
tree1871842be5fdc5ee3294148359e11e9644ecb00c /include/obj.h
parent99be0e6d066d734f7580c4034404f123cc0f07f3 (diff)
object: add userdata and comment support
This patch adds NFTNL_OBJ_USERDATA to support userdata for objects. Also adds NFTNL_UDATA_OBJ_COMMENT to support comments for objects, stored in userdata space. Bumps libnftnl.map to 15 as nftnl_obj_get_data needs to be exported to enable getting object attributes/data. Signed-off-by: Jose M. Guisado Gomez <guigom@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/obj.h')
-rw-r--r--include/obj.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/obj.h b/include/obj.h
index 10f806c..d9e856a 100644
--- a/include/obj.h
+++ b/include/obj.h
@@ -22,6 +22,11 @@ struct nftnl_obj {
uint32_t flags;
uint64_t handle;
+ struct {
+ void *data;
+ uint32_t len;
+ } user;
+
union {
struct nftnl_obj_counter {
uint64_t pkts;