]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: deduplicate map with data interval
authorFlorian Westphal <fw@strlen.de>
Wed, 2 Aug 2023 15:48:24 +0000 (17:48 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 3 Aug 2023 11:06:19 +0000 (13:06 +0200)
commit28d202216535ac54216f825e511a92d9acea5d3c
treecaa956ef26c7bd09dce77b799be9b855992d7544
parent5c25c5a35cbd27911d233efd01efcb9be35c85af
parser: deduplicate map with data interval

Its copypasted, the copy is same as original
except that it specifies a map key that maps to an interval.

Add an exra rule that returns 0 or EXPR_F_INTERVAL, then
use that in a single rule.

Signed-off-by: Florian Westphal <fw@strlen.de>
src/parser_bison.y