]> git.ipfire.org Git - thirdparty/nftables.git/commit
intervals: use expression location when translating to intervals
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 27 Mar 2023 14:36:31 +0000 (16:36 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Mar 2023 08:26:34 +0000 (10:26 +0200)
commit5e39a34b196d68b803911aa13066fef2f83dc98c
tree7c36bcbf2d12a3706806a6c60154ace8a8705634
parentfd76cdcb9a62552c7c8b6cdf6f1591f12aa9b482
intervals: use expression location when translating to intervals

Otherwise, internal location reports:

 # nft -f ruleset.nft
 internal:0:0-0: Error: Could not process rule: File exists

after this patch:

 # nft -f ruleset.nft
 ruleset.nft:402:1-16: Error: Could not process rule: File exists
 1.2.3.0/30,
 ^^^^^^^^^^^

Fixes: 81e36530fcac ("src: replace interval segment tree overlap and automerge")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/intervals.c