summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/meta.t.payload
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-03-14 10:29:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-03-14 10:32:14 +0100
commit5be698396c6b2b71c5d5f11fe2b66ec362e454bf (patch)
treec8acbf4289d200d75a9f5e393225d1dba91808f8 /tests/py/ip/meta.t.payload
parent63b3efd9b4b13d7ab9ca5518aab684a13686ba96 (diff)
Revert "evaluate: relax type-checking for integer arguments in mark statements"
This patch reverts eab3eb7f146c ("evaluate: relax type-checking for integer arguments in mark statements") since it might cause ruleset portability issues when moving a ruleset from little to big endian host (and vice-versa). Let's revert this until we agree on what to do in this case. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/ip/meta.t.payload')
-rw-r--r--tests/py/ip/meta.t.payload8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/py/ip/meta.t.payload b/tests/py/ip/meta.t.payload
index 1aa8d003..afde5cc1 100644
--- a/tests/py/ip/meta.t.payload
+++ b/tests/py/ip/meta.t.payload
@@ -51,11 +51,3 @@ ip test-ip4 input
[ cmp eq reg 1 0x00000011 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
[ cmp eq reg 1 0x00004300 ]
-
-# meta mark set ip dscp
-ip test-ip4 input
- [ payload load 1b @ network header + 1 => reg 1 ]
- [ bitwise reg 1 = ( reg 1 & 0x000000fc ) ^ 0x00000000 ]
- [ bitwise reg 1 = ( reg 1 >> 0x00000002 ) ]
- [ meta set mark with reg 1 ]
-