diff options
author | Florian Westphal <fw@strlen.de> | 2021-11-21 23:33:14 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-12-01 14:11:39 +0100 |
commit | d9985fe873c1c35dedd8fd73af4962ba94f3dc52 (patch) | |
tree | 7d4b562cd7ee5d531ad6fc22917f78f58c9e9335 /tests/py/any/tcpopt.t.payload | |
parent | fa86b544c03b14ea12f30ad39676a6fea88cbe05 (diff) |
tests: py: add test cases for md5sig, fastopen and mptcp mnemonics
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any/tcpopt.t.payload')
-rw-r--r-- | tests/py/any/tcpopt.t.payload | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/py/any/tcpopt.t.payload b/tests/py/any/tcpopt.t.payload index d88bcd43..7ad19183 100644 --- a/tests/py/any/tcpopt.t.payload +++ b/tests/py/any/tcpopt.t.payload @@ -153,3 +153,17 @@ inet [ immediate reg 1 0x00005005 ] [ exthdr write tcpopt reg 1 => 2b @ 2 + 2 ] +# tcp option md5sig exists +inet + [ exthdr load tcpopt 1b @ 19 + 0 present => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + +# tcp option fastopen exists +inet + [ exthdr load tcpopt 1b @ 34 + 0 present => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + +# tcp option mptcp exists +inet + [ exthdr load tcpopt 1b @ 30 + 0 present => reg 1 ] + [ cmp eq reg 1 0x00000001 ] |