From: Alvaro Neira Ayuso <alvaroneay@xxxxxxxxx> --- examples/nft-chain-get.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html