]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: py: extend test-cases for mark statements with bitwise expressions
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Mar 2023 12:50:35 +0000 (13:50 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Mar 2023 08:26:34 +0000 (10:26 +0200)
commit0da91df25d2425c96f308296ccebe08829d962f8
tree71254be80e7704485e9f4b83fc47d503f3584852
parent743071a345c5687ffea172bd119b0355d38d7c8f
tests: py: extend test-cases for mark statements with bitwise expressions

Add more tests to cover bitwise operation. Shift operations are used on
constant value which are reduced at evaluation time.

Shift takes precendence over AND and OR operations, otherwise use parens
to override this.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/ip/ct.t
tests/py/ip/ct.t.json
tests/py/ip/ct.t.payload
tests/py/ip6/ct.t
tests/py/ip6/ct.t.json
tests/py/ip6/ct.t.payload