Re: [PATCH nftables,v3 2/2] src: add set element catch-all support

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

 



On Tue, May 11, 2021 at 05:27:52PM +0200, Pablo Neira Ayuso wrote:
> Add a catchall expression (EXPR_SET_ELEM_CATCHALL).
> 
> Use the asterisk (*) to represent the catch-all set element, e.g.
> 
>  table x {
>      set y {
> 	type ipv4_addr
> 	counter
> 	elements = { 1.2.3.4 counter packets 0 bytes 0, * counter packets 0 bytes 0 }
>      }
>  }
> 
> Special handling for segtree: zap the catch-all element from the set
> element list and re-add it after processing.
> 
> Remove wildcard_expr deadcode in src/parser_bison.y
> 
> This patch also adds several tests for the tests/py and tests/shell
> infrastructures.
> 
> Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>

Acked-by: Phil Sutter <phil@xxxxxx>

Thanks, Phil



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

  Powered by Linux