summaryrefslogtreecommitdiffstats
path: root/tests/regression/inet/tcp.t.payload.ip6
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2015-08-12 03:23:40 +0200
committerFlorian Westphal <fw@strlen.de>2015-09-18 00:06:12 +0200
commite540acb8c1e16c9a9afc4c800ce524e47be803d4 (patch)
tree8bdd03c6d0b9c34bff2aed1791816035927a1eb6 /tests/regression/inet/tcp.t.payload.ip6
parent048a5e093fde9db515ebc7b14f91bceb6cbd5949 (diff)
tests: add tests for ip version/hdrlength/tcp doff
Header fields of 4 bit lengths. Requires implicit masks and shifting of RHS constant. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/regression/inet/tcp.t.payload.ip6')
-rw-r--r--tests/regression/inet/tcp.t.payload.ip68
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regression/inet/tcp.t.payload.ip6 b/tests/regression/inet/tcp.t.payload.ip6
index 32115edc..44decab4 100644
--- a/tests/regression/inet/tcp.t.payload.ip6
+++ b/tests/regression/inet/tcp.t.payload.ip6
@@ -498,3 +498,11 @@ ip6 test-ip6 input
[ payload load 2b @ transport header + 18 => reg 1 ]
[ lookup reg 1 set set%d ]
+# tcp doff 8
+ip6 test-ip6 input
+ [ payload load 1b @ network header + 6 => reg 1 ]
+ [ cmp eq reg 1 0x00000006 ]
+ [ payload load 1b @ transport header + 12 => reg 1 ]
+ [ bitwise reg 1 = (reg=1 & 0x000000f0 ) ^ 0x00000000 ]
+ [ cmp eq reg 1 0x00000080 ]
+