Message ID | 20130613185030.423.58859.stgit@Ph0enix |
---|---|
State | Superseded |
Delegated to: | Pablo Neira |
Headers | show |
diff --git a/examples/nft-rule-get.c b/examples/nft-rule-get.c index 5bf41f5..2404f27 100644 --- a/examples/nft-rule-get.c +++ b/examples/nft-rule-get.c @@ -54,8 +54,11 @@ int main(int argc, char *argv[]) struct nft_rule *t = NULL; int ret; - if (argc == 2 && strcmp(argv[1], "xml") == 0 ) + if (argc == 2 && strcmp(argv[1], "xml") == 0 ){ type = NFT_RULE_O_XML; + }else if (argc == 2 && strcmp(argv[1], "json") == 0 ){ + type = NFT_RULE_O_JSON; + } /* XXX requires table, chain and handle attributes for selective get */