summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/meta.t.json
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2020-02-03 11:20:23 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2020-02-07 16:57:30 +0100
commita16920d3620d9b7130c994a26c0b86f8b357103e (patch)
tree304151f8693cee6740a276b6422ef7d75b4d9ec2 /tests/py/inet/meta.t.json
parent2674c39bfdb77e5d61a44ebf6e5c356ac767cd24 (diff)
tests: py: add bit-shift tests.
Add a couple of Python test-cases for setting the CT mark to a bitwise expression derived from the packet mark and vice versa. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/meta.t.json')
-rw-r--r--tests/py/inet/meta.t.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/py/inet/meta.t.json b/tests/py/inet/meta.t.json
index 5501f0be..5c0e7d2e 100644
--- a/tests/py/inet/meta.t.json
+++ b/tests/py/inet/meta.t.json
@@ -213,3 +213,25 @@
}
]
+# meta mark set ct mark >> 8
+[
+ {
+ "mangle": {
+ "key": {
+ "meta": {
+ "key": "mark"
+ }
+ },
+ "value": {
+ ">>": [
+ {
+ "ct": {
+ "key": "mark"
+ }
+ },
+ 8
+ ]
+ }
+ }
+ }
+]