From bf39c53f4c5499e359aa86ccca16c996456bdc9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Fri, 5 Jul 2013 14:41:28 +0200 Subject: set: add json output This patch allows you to dump set and their content in json format. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- include/libnftables/set.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libnftables') 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); -- cgit v1.2.3