netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alvaro Neira <alvaroneay@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: julien@linuxwall.info
Subject: [libnftables PATCH 2/4] Add implementation for to proof the JSON export function
Date: Thu, 06 Jun 2013 15:17:18 +0200	[thread overview]
Message-ID: <20130606131718.18048.66723.stgit@Ph0enix> (raw)
In-Reply-To: <20130606131706.18048.11297.stgit@Ph0enix>


---
 examples/nft-table-get.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/examples/nft-table-get.c b/examples/nft-table-get.c
index b113636..0d7746c 100644
--- a/examples/nft-table-get.c
+++ b/examples/nft-table-get.c
@@ -59,6 +59,10 @@ int main(int argc, char *argv[])
 		type = NFT_TABLE_O_XML;
 		argv[argc-1] = NULL;
 		argc--;
+	}else if (strcmp(argv[argc-1], "json") == 0) {
+		type = NFT_TABLE_O_JSON;
+		argv[argc-1] = NULL;
+		argc--;
 	} else if (strcmp(argv[argc - 1], "default") == 0) {
 		argc--;
 	}


  reply	other threads:[~2013-06-06 13:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-06 13:17 [libnftables PATCH 1/4] Add functions for to export tables to JSON format Alvaro Neira
2013-06-06 13:17 ` Alvaro Neira [this message]
2013-06-06 13:17 ` [libnftables PATCH 3/4] Add JSON Constant for to use the Json export function Alvaro Neira
2013-06-06 16:25   ` Pablo Neira Ayuso
2013-06-06 13:17 ` [libnftables PATCH 4/4] Add a constant for to put the JSON Version Alvaro Neira

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130606131718.18048.66723.stgit@Ph0enix \
    --to=alvaroneay@gmail.com \
    --cc=julien@linuxwall.info \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).