Re: [nft PATCH] monitor: Fix output for ranges in anonymous sets

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

 



On Mon, Jan 13, 2020 at 02:59:11PM +0100, Phil Sutter wrote:
> Previous fix for named interval sets was simply wrong: Instead of
> limiting decomposing to anonymous interval sets, it effectively disabled
> it entirely.
> 
> Since code needs to check for both interval and anonymous bits
> separately, introduce set_is_interval() helper to keep the code
> readable.
> 
> Also extend test case to assert ranges in anonymous sets are correctly
> printed by echo or monitor modes. Without this fix, range boundaries are
> printed as individual set elements.
> 
> Fixes: 5d57fa3e99bb9 ("monitor: Do not decompose non-anonymous sets")
> Signed-off-by: Phil Sutter <phil@xxxxxx>

Reviewed-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>



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

  Powered by Linux