Re: [nft PATCH] meta: introduce datatype ifname_type

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

 



On Sun, Feb 25, 2018 at 06:30:24PM +0100, Arturo Borrero Gonzalez wrote:
> This new datatype is a string subtype.
> It will allow us to build named maps/sets using meta keys like 'iifname',
> 'oifname', 'ibriport' or 'obriport'.
> 
> Example:
> 
> table inet t {
> 	set s {
> 		type ifname
> 		elements = { "eth0",
> 			     "eth1" }
> 	}
> 
> 	chain c {
> 		iifname @s accept
> 		oifname @s accept
> 	}
> }

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