summaryrefslogtreecommitdiffstats
path: root/include/libnftables/rule.h
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <alvaroneay@gmail.com>2013-06-27 21:56:18 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-06-29 11:56:05 +0200
commit4a684c2ee4cdff2c5c6bfa06d93b58cb4e868bf6 (patch)
tree6216e645631bba685f1c17e0cce851d0c1c6c517 /include/libnftables/rule.h
parentcaf4ac2e95a358f5b6ee64c4cc6c6c96a0bff24b (diff)
src: support JSON format in chain, rule and expressions
While at it, order possible switch cases of _snprintf. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnftables/rule.h')
-rw-r--r--include/libnftables/rule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h
index fb6e804..186c82c 100644
--- a/include/libnftables/rule.h
+++ b/include/libnftables/rule.h
@@ -44,6 +44,7 @@ void nft_rule_nlmsg_build_payload(struct nlmsghdr *nlh, struct nft_rule *t);
enum {
NFT_RULE_O_DEFAULT = 0,
NFT_RULE_O_XML,
+ NFT_RULE_O_JSON,
};
enum nft_rule_parse_type {