summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCarlos Falgueras García <carlosfg@riseup.net>2016-03-22 20:46:27 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-04-14 02:20:01 +0200
commit795d88cb710512d9b85afbb17beaeec3d92dcd54 (patch)
tree1f705d76b500e596f827826008ebce0ad2db4c06 /include
parent0128160cbfecd72a17fa920c343c37b9187d1c72 (diff)
rule: Use libnftnl user data TLV infrastructure
Now it is possible to store multiple variable length user data into rule. Modify the parser in order to fill the nftnl_udata with the comment, and the print function for extract these commentary and print it to user. Signed-off-by: Carlos Falgueras García <carlosfg@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/rule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index cfe33a73..6dbde130 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -418,4 +418,10 @@ extern int do_command(struct netlink_ctx *ctx, struct cmd *cmd);
extern int cache_update(enum cmd_ops cmd, struct list_head *msgs);
extern void cache_release(void);
+enum udata_type {
+ UDATA_TYPE_COMMENT,
+ __UDATA_TYPE_MAX,
+};
+#define UDATA_TYPE_MAX (__UDATA_TYPE_MAX - 1)
+
#endif /* NFTABLES_RULE_H */