Message ID | 20130608133612.10197.37919.stgit@Ph0enix |
---|---|
State | Accepted |
Headers | show |
Applied, thanks Álvaro. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/examples/nft-chain-get.c b/examples/nft-chain-get.c index b815523..459b79e 100644 --- a/examples/nft-chain-get.c +++ b/examples/nft-chain-get.c @@ -90,8 +90,11 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - if (strcmp(argv[argc-1], "xml") == 0) + if (strcmp(argv[argc-1], "xml") == 0){ type = NFT_CHAIN_O_XML; + }else if (strcmp(argv[argc-1], "json") == 0){ + type = NFT_CHAIN_O_JSON; + } nl = mnl_socket_open(NETLINK_NETFILTER); if (nl == NULL) {
From: Alvaro Neira Ayuso <alvaroneay@gmail.com> --- examples/nft-chain-get.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html