Re: [nft PATCH] Combine redir and masq statements into nat

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

 



On Sat, Mar 17, 2018 at 10:39:27AM +0100, Phil Sutter wrote:
> All these statements are very similar, handling them with the same code
> is obvious. The only thing required here is a custom extension of enum
> nft_nat_types which is used in nat_stmt to distinguish between snat and
> dnat already. Though since enum nft_nat_types is part of kernel uAPI,
> create a local extended version containing the additional fields.
> 
> Note that nat statement printing got a bit more complicated to get the
> number of spaces right for every possible combination of attributes.
> 
> Note also that there wasn't a case for STMT_MASQ in
> rule_parse_postprocess(), which seems like a bug. Since STMT_MASQ became
> just a variant of STMT_NAT, postprocessing will take place for it now
> anyway.

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