From 989b793a3bf689757b2b8f08a1c264743d75fa0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Neira=20Ayuso?= Date: Mon, 11 Nov 2013 21:09:35 +0100 Subject: src: unify parse and output types Unify parse and output types that are redundant to all existing nftables objects. Thus, all NFT_*_O_[XML|JSON|DEFAULT] are merged into NFT_OUTPUT_[JSON|XML] and NFT_PARSE_[JSON|XML]. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- examples/nft-rule-get.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/nft-rule-get.c') diff --git a/examples/nft-rule-get.c b/examples/nft-rule-get.c index cd0f8dc..f17630b 100644 --- a/examples/nft-rule-get.c +++ b/examples/nft-rule-get.c @@ -51,7 +51,7 @@ int main(int argc, char *argv[]) struct mnl_socket *nl; char buf[MNL_SOCKET_BUFFER_SIZE]; struct nlmsghdr *nlh; - uint32_t portid, seq, type = NFT_RULE_O_DEFAULT; + uint32_t portid, seq, type = NFT_OUTPUT_DEFAULT; struct nft_rule *t = NULL; int ret, family; @@ -78,9 +78,9 @@ int main(int argc, char *argv[]) if (argc == 3) { if (strcmp(argv[2], "xml") == 0) - type = NFT_RULE_O_XML; + type = NFT_OUTPUT_XML; else if (strcmp(argv[2], "json") == 0) - type = NFT_RULE_O_JSON; + type = NFT_OUTPUT_JSON; } /* XXX requires table, chain and handle attributes for selective get */ -- cgit v1.2.3