Re: [nft PATCH v2] evaluate: avoid reference to multiple src data in statements which set values

2017-05-29 Thread Pablo Neira Ayuso
On Fri, May 26, 2017 at 01:00:21PM +0200, Arturo Borrero Gonzalez wrote: > Prevent this assert: > > % nft [..] tcp dport set { 0 , 1 } > BUG: unknown expression type set reference > nft: netlink_linearize.c:696: netlink_gen_expr: Assertion `0' failed. > Aborted > > We can't use a set here

[nft PATCH v2] evaluate: avoid reference to multiple src data in statements which set values

2017-05-26 Thread Arturo Borrero Gonzalez
Prevent this assert: % nft [..] tcp dport set { 0 , 1 } BUG: unknown expression type set reference nft: netlink_linearize.c:696: netlink_gen_expr: Assertion `0' failed. Aborted We can't use a set here because we will not known which value to use. With this patch, a proper error message is