diff options
author | Álvaro Neira Ayuso <alvaroneay@gmail.com> | 2013-07-15 21:30:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-07-16 00:09:37 +0200 |
commit | 78d773b519a4c3f41b3c515505bb8c3bad686fe1 (patch) | |
tree | b3176615438f0de91f92574b59beef9320bfa563 /src/internal.h | |
parent | e6007410f013a0e01da93131703c4eb1e5182c6f (diff) |
set: json: fix incomplete output
In (bf39c53 set: add json output), the json support for sets was
incomplete:
* version, family, key_type, key_len, data_type, data_len were not included.
* Now I use nft_data_reg_snprintf for printing the key and data
Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h index 773643b..dc7d0c3 100644 --- a/src/internal.h +++ b/src/internal.h @@ -28,6 +28,7 @@ int nft_mxml_data_reg_parse(mxml_node_t *tree, const char *node_name, union nft_ #define NFT_TABLE_JSON_VERSION 0 #define NFT_CHAIN_JSON_VERSION 0 #define NFT_RULE_JSON_VERSION 0 +#define NFT_SET_JSON_VERSION 0 const char *nft_family2str(uint32_t family); int nft_str2family(const char *family); |