Re: [iptables PATCH 1/4] libxtables: xt_xlate_add() to take care of spacing

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

 



On Fri, Nov 25, 2022 at 05:12:26PM +0100, Phil Sutter wrote:
> Try to eliminate most of the whitespace issues by separating strings
> from separate xt_xlate_add() calls by whitespace if needed.
> 
> Cover the common case of consecutive range, list or MAC/IP address
> printing by inserting whitespace only if the string to be appended
> starts with an alphanumeric character or a brace. The latter helps to
> make spacing in anonymous sets consistent.
> 
> Provide *_nospc() variants which disable the auto-spacing for the
> mandatory exception to the rule.
> 
> Make things round by dropping any trailing whitespace before returning
> the buffer via xt_xlate_get().
> 
> Signed-off-by: Phil Sutter <phil@xxxxxx>

Series applied.



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

  Powered by Linux