summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>2013-08-09 13:13:14 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-08-09 13:27:19 +0200
commitadd2bc2068992daf520082c2765261227afd8f09 (patch)
tree5224e0fc94e1b254dc81ddf959665415787dfe49 /src/rule.c
parent76a30eaecb210f1806031f873767798be5414c00 (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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rule.c b/src/rule.c
index 4f9a039..f2b714e 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -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) ||