]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: disable meta set with ranges
authorFlorian Westphal <fw@strlen.de>
Mon, 4 Dec 2023 18:04:58 +0000 (19:04 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 5 Dec 2023 11:43:21 +0000 (12:43 +0100)
commitd99b44adc5cfc455fdafd9b4bdabd413edf9a38a
tree567886b9fd99b9fd4b0c286a3ba67a2beff2da3c
parent45a4d4434742b425d019623812f2cce293033cdf
evaluate: disable meta set with ranges

... this will cause an assertion in netlink linearization, catch this
at eval stage instead.

before:
BUG: unknown expression type range
nft: netlink_linearize.c:908: netlink_gen_expr: Assertion `0' failed.

after:
/unknown_expr_type_range_assert:3:31-40: Error: Meta expression cannot be a range
meta mark set 0x001-3434
              ^^^^^^^^^^

Signed-off-by: Florian Westphal <fw@strlen.de>
src/evaluate.c
tests/shell/testcases/bogons/nft-f/unknown_expr_type_range_assert [new file with mode: 0644]