Re: [nft PATCH v4 3/6] src: add input flag NFT_CTX_INPUT_JSON to enable JSON parsing

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

 



On Thu, Aug 03, 2023 at 09:35:18PM +0200, Thomas Haller wrote:
> By default, the input is parsed using the nftables grammar. When setting
> NFT_CTX_OUTPUT_JSON flag, nftables will first try to parse the input as
> JSON before falling back to the nftables grammar.
> 
> But NFT_CTX_OUTPUT_JSON flag also turns on JSON for the output. Add a
> flag NFT_CTX_INPUT_JSON which allows to treat only the input as JSON,
> but keep the output mode unchanged.
> 
> Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx>

Reviewed-by: Phil Sutter <phil@xxxxxx>



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux