diff options
author | Álvaro Neira Ayuso <alvaroneay@gmail.com> | 2013-08-09 13:13:14 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-09 13:27:19 +0200 |
commit | add2bc2068992daf520082c2765261227afd8f09 (patch) | |
tree | 5224e0fc94e1b254dc81ddf959665415787dfe49 /src/rule.c | |
parent | 76a30eaecb210f1806031f873767798be5414c00 (diff) |
src: json: delete unneeded JSON prefixes
This patch adapts JSON nodes to mimic current XML node tags.
Signed-off-by: Alvaro Neira Ayuso Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -629,8 +629,7 @@ static int nft_rule_snprintf_json(char *buf, size_t size, struct nft_rule *r, (unsigned long long)r->handle); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); - ret = snprintf(buf+offset, len, "\"rule_flags\" : %u, ", - r->rule_flags); + ret = snprintf(buf+offset, len, "\"flags\" : %u, ", r->rule_flags); SNPRINTF_BUFFER_SIZE(ret, size, len, offset); if (r->flags & (1 << NFT_RULE_ATTR_COMPAT_PROTO) || |