Re: [libnftables PATCH 2/2] json: Refactor of exporting and parsing support flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 11, 2013 at 09:09:35PM +0100, Alvaro Neira wrote:
> From: Álvaro Neira Ayuso <alvaroneay@xxxxxxxxx>
> 
> Remove the different flag definition for using the snprinf
> and parsing support and create a new flags for joining in
> general flags.
>
> Now for printing or parsing tables or chains, we needed to use:
> 	NFT_TABLE_O_JSON
> 	NFT_TABLE_O_XML
> 	NFT_CHAIN_O_JSON
> 	NFT_CHAIN_O_XML
> 	NFT_CHAIN_PARSE_JSON
> 	NFT_TABLE_PARSE_JSON
> 	NFT_CHAIN_PARSE_XML
>         NFT_TABLE_PARSE_XML
> 
> Now for exporting and parsing rules and chains, we only use:
> 	NFT_FORMAT_JSON
> 	NFT_FORMAT_XML
> 	NFT_PARSE_FORMAT_JSON
> 	NFT_PARSE_FORMAT_XML

These names are too long. I mangled your patch to use:

NFT_OUTPUT_[XML|JSON]
NFT_PARSE_[XML|JSON]

instead.

I have also reworked the patch descriptions, it says "json: " but this
is not only related to it. Fixed and applied, thanks for working on this.
--
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




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux