]>
git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: consolidate evaluation of symbol range expression
Expand symbol_range to range expression to consolidate evaluation.
I found a bug when testing for negative ranges:
test.nft:5:16-30: Error: Could not process rule: File exists
elements = { 1.1.1.1-1.1.1.0 }
^^^^^^^^^^^^^^^
after this patch, error reporting has been restored:
test.nft:5:16-30: Error: Range negative size
elements = { 1.1.1.1-1.1.1.0 }
^^^^^^^^^^^^^^^
Fixes: 347039f64509 ("src: add symbol range expression to further compact intervals")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>