Re: [nft PATCH] evaluate: Convert ranges of N-N to N

2018-11-03 Thread Pablo Neira Ayuso
Hi Phil, On Wed, Oct 24, 2018 at 12:42:09PM +0200, Phil Sutter wrote: > Trying to add a range of size 1 was previously not allowed: > > | # nft add element ip t s '{ 40-40 }' > | Error: Range has zero or negative size > | add element ip t s { 40-40 } > | ^ > > The error

[nft PATCH] evaluate: Convert ranges of N-N to N

2018-10-24 Thread Phil Sutter
Trying to add a range of size 1 was previously not allowed: | # nft add element ip t s '{ 40-40 }' | Error: Range has zero or negative size | add element ip t s { 40-40 } | ^ The error message is not correct: A range of N-K with K >= N consists of K - N + 1 elements (N,