summaryrefslogtreecommitdiffstats
path: root/include/libnftables
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>2013-07-05 14:41:28 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-06 00:00:45 +0200
commitbf39c53f4c5499e359aa86ccca16c996456bdc9e (patch)
treedca0500e0117491dfd40957a8bd6cb5992deda78 /include/libnftables
parent485d38ca136e2411cd25b542f63c17445a8deeea (diff)
set: add json output
This patch allows you to dump set and their content in json format. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables')
-rw-r--r--include/libnftables/set.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libnftables/set.h b/include/libnftables/set.h
index 63b30fc..2d41c8e 100644
--- a/include/libnftables/set.h
+++ b/include/libnftables/set.h
@@ -62,6 +62,11 @@ enum {
NFT_SET_ELEM_ATTR_DATA,
};
+enum {
+ NFT_SET_O_DEFAULT = 0,
+ NFT_SET_O_JSON,
+};
+
struct nft_set_elem;
struct nft_set_elem *nft_set_elem_alloc(void);