]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: error out if basetypes are different
authorFlorian Westphal <fw@strlen.de>
Mon, 4 Dec 2023 17:30:51 +0000 (18:30 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 5 Dec 2023 14:49:57 +0000 (15:49 +0100)
commit972ee91aebd81d9312d84b3ac7ffccce7e35b5d1
tree908c93e8c90fd01aaa1f05803b046524e3a1332d
parenta8be4d2f8bc3923f7b9e0558921d04345c78294d
evaluate: error out if basetypes are different

commit 45a4d4434742b425d019623812f2cce293033cdf upstream.

prefer
binop_with_different_basetype_assert:3:29-35: Error: Binary operation (<<) with different base types (string vs integer) is not supported
oifname set ip9dscp << 26 | 0x10
            ^^^^^^^~~~~~~
to assertion failure.

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