summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/sctp.t.payload.ip6
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-09-20 19:25:25 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-10-17 17:55:56 +0200
commit3ed932917cc744b489bd2706a55a1778b0b50c0e (patch)
tree96f226969cab52a9c29510378612751713f78d98 /tests/py/inet/sctp.t.payload.ip6
parentf55ccf9ea1061f8e50065c0cc6b3ed93523f0b97 (diff)
src: use new range expression for != [a,b] intervals
Use new range expression in the kernel to fix wrong bytecode generation. This patch also adjust tests so we don't hit problems there. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/sctp.t.payload.ip6')
-rw-r--r--tests/py/inet/sctp.t.payload.ip612
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/py/inet/sctp.t.payload.ip6 b/tests/py/inet/sctp.t.payload.ip6
index 579609b7..5d113692 100644
--- a/tests/py/inet/sctp.t.payload.ip6
+++ b/tests/py/inet/sctp.t.payload.ip6
@@ -25,8 +25,7 @@ ip6 test-ip6 input
[ payload load 1b @ network header + 6 => reg 1 ]
[ cmp eq reg 1 0x00000084 ]
[ payload load 2b @ transport header + 0 => reg 1 ]
- [ cmp lt reg 1 0x00001700 ]
- [ cmp gt reg 1 0x00002c00 ]
+ [ range neq reg 1 0x00001700 0x00002c00 ]
# sctp sport { 23, 24, 25}
__set%d test-ip6 3
@@ -75,8 +74,7 @@ ip6 test-ip6 input
[ payload load 1b @ network header + 6 => reg 1 ]
[ cmp eq reg 1 0x00000084 ]
[ payload load 2b @ transport header + 2 => reg 1 ]
- [ cmp lt reg 1 0x00001700 ]
- [ cmp gt reg 1 0x00002c00 ]
+ [ range neq reg 1 0x00001700 0x00002c00 ]
# sctp dport { 23, 24, 25}
__set%d test-ip6 3
@@ -125,8 +123,7 @@ ip6 test-ip6 input
[ payload load 1b @ network header + 6 => reg 1 ]
[ cmp eq reg 1 0x00000084 ]
[ payload load 4b @ transport header + 8 => reg 1 ]
- [ cmp lt reg 1 0x20000000 ]
- [ cmp gt reg 1 0x6f000000 ]
+ [ range neq reg 1 0x20000000 0x6f000000 ]
# sctp checksum { 22, 33, 44}
__set%d test-ip6 3
@@ -175,8 +172,7 @@ ip6 test-ip6 input
[ payload load 1b @ network header + 6 => reg 1 ]
[ cmp eq reg 1 0x00000084 ]
[ payload load 4b @ transport header + 4 => reg 1 ]
- [ cmp lt reg 1 0x21000000 ]
- [ cmp gt reg 1 0x2d000000 ]
+ [ range neq reg 1 0x21000000 0x2d000000 ]
# sctp vtag {33, 55, 67, 88}
__set%d test-ip6 3