Re: [iptables PATCH] xtables: Fix for spurious errors from iptables-translate

2018-10-23 Thread Pablo Neira Ayuso
On Tue, Oct 23, 2018 at 04:59:14PM +0200, Phil Sutter wrote: > When aligning iptables-nft error messages with legacy ones, I missed > that translate tools shouldn't check for missing or duplicated chains. > > Introduce a boolean in struct nft_xt_cmd_parse indicating we're "just" > translating and

[iptables PATCH] xtables: Fix for spurious errors from iptables-translate

2018-10-23 Thread Phil Sutter
When aligning iptables-nft error messages with legacy ones, I missed that translate tools shouldn't check for missing or duplicated chains. Introduce a boolean in struct nft_xt_cmd_parse indicating we're "just" translating and do_parse() should skip the checks. Fixes: b6a06c1a215f8 ("xtables: