chain: json: fix family and table error
PATCH 1/1 chain: json: fix family and table error
From: Álvaro Neira Ayuso <[email protected]>
In (74ccff7 chain: json: use string to identify policy), the json support for chain was unintentionally swapping the table name and the family.
---
0 files changed
src/chain.c +2 -2
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Pablo Neira Ayuso
maintainerQuoted 5 lines · Alvaro Neira
From: Álvaro Neira Ayuso <[email protected]>
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html