All of lore.kernel.org
 help / color / mirror / Atom feed
* [libnftables PATCH] chain: json: fix family and table error
@ 2013-07-18 11:36 Alvaro Neira
  2013-07-19 10:21 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Alvaro Neira @ 2013-07-18 11:36 UTC (permalink / raw)
  To: netfilter-devel; +Cc: eric

From: Álvaro Neira Ayuso <alvaroneay@gmail.com>

In (74ccff7 chain: json: use string to identify policy), the json support for chain was unintentionally
swapping the table name and the family.


Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
---
 0 files changed

diff --git a/src/chain.c b/src/chain.c
index 0a0e688..3c73511 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -746,8 +746,8 @@ static int nft_chain_snprintf_json(char *buf, size_t size, struct nft_chain *c)
 				"\"table\": \"%s\","
 				"\"use\": %d",
 			c->name, c->handle, c->bytes, c->packets,
-			NFT_CHAIN_JSON_VERSION, c->table,
-			nft_family2str(c->family), c->use);
+			NFT_CHAIN_JSON_VERSION, nft_family2str(c->family),
+			c->table, c->use);
 		SNPRINTF_BUFFER_SIZE(ret, size, len, offset);
 
 	if (c->flags & (1 << NFT_CHAIN_ATTR_HOOKNUM)) {

--
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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [libnftables PATCH] chain: json: fix family and table error
  2013-07-18 11:36 [libnftables PATCH] chain: json: fix family and table error Alvaro Neira
@ 2013-07-19 10:21 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-07-19 10:21 UTC (permalink / raw)
  To: Alvaro Neira; +Cc: netfilter-devel, eric

On Thu, Jul 18, 2013 at 01:36:01PM +0200, Alvaro Neira wrote:
> From: Álvaro Neira Ayuso <alvaroneay@gmail.com>
> 
> In (74ccff7 chain: json: use string to identify policy), the json
> support for chain was unintentionally swapping the table name and
> the family.

Applied, thanks.
--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-07-19 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-18 11:36 [libnftables PATCH] chain: json: fix family and table error Alvaro Neira
2013-07-19 10:21 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.