summaryrefslogtreecommitdiffstats
path: root/tests/py/inet/dccp.t.payload
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/inet/dccp.t.payload')
-rw-r--r--tests/py/inet/dccp.t.payload20
1 files changed, 16 insertions, 4 deletions
diff --git a/tests/py/inet/dccp.t.payload b/tests/py/inet/dccp.t.payload
index fbe9dc5b..7cb9721c 100644
--- a/tests/py/inet/dccp.t.payload
+++ b/tests/py/inet/dccp.t.payload
@@ -3,8 +3,7 @@ inet test-inet input
[ meta load l4proto => reg 1 ]
[ cmp eq reg 1 0x00000021 ]
[ payload load 2b @ transport header + 0 => reg 1 ]
- [ cmp gte reg 1 0x00001500 ]
- [ cmp lte reg 1 0x00002300 ]
+ [ range eq reg 1 0x00001500 0x00002300 ]
# dccp sport != 21-35
inet test-inet input
@@ -38,8 +37,7 @@ inet test-inet input
[ meta load l4proto => reg 1 ]
[ cmp eq reg 1 0x00000021 ]
[ payload load 2b @ transport header + 0 => reg 1 ]
- [ cmp gte reg 1 0x00001400 ]
- [ cmp lte reg 1 0x00003200 ]
+ [ range eq reg 1 0x00001400 0x00003200 ]
# dccp dport {23, 24, 25}
__set%d test-ip4 3
@@ -99,3 +97,17 @@ inet test-inet input
[ bitwise reg 1 = ( reg 1 & 0x0000001e ) ^ 0x00000000 ]
[ cmp neq reg 1 0x00000000 ]
+# dccp option 0 exists
+ip test-inet input
+ [ exthdr load 1b @ 0 + 0 present => reg 1 ]
+ [ cmp eq reg 1 0x00000001 ]
+
+# dccp option 43 missing
+ip test-inet input
+ [ exthdr load 1b @ 43 + 0 present => reg 1 ]
+ [ cmp eq reg 1 0x00000000 ]
+
+# dccp option 255 exists
+ip test-inet input
+ [ exthdr load 1b @ 255 + 0 present => reg 1 ]
+ [ cmp eq reg 1 0x00000001 ]