Re: [PATCH nft 1/2] expressions: concat: add typeof support

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

 



On Wed, Feb 26, 2020 at 01:26:26PM +0100, Florian Westphal wrote:
> Previous patches allow to pass concatenations as the mapped-to
> data type.
> 
> This doesn't work with typeof() because the concat expression has
> no support to store the typeof data in the kernel, leading to:
> 
> map t2 {
>     typeof numgen inc mod 2 : ip daddr . tcp dport
> 
> being shown as
>      type 0 : ipv4_addr . inet_service
> 
> ... which can't be parsed back by nft.
> 
> This allows the concat expression to store the sub-expressions
> in set of nested attributes.

LGTM, thanks Florian.



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

  Powered by Linux