diff options
author | Florian Westphal <fw@strlen.de> | 2021-11-21 23:33:22 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-12-01 14:17:29 +0100 |
commit | 49ac868a0d5b99bad5dbf5603ebf02237a37459d (patch) | |
tree | 27762a59d56ae68485bc130926165c72aabdb724 /tests/py/any/tcpopt.t.json | |
parent | c10464b84d2fe06e137f2d690e347802fcb50821 (diff) |
tests: py: add tcp subtype match test cases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any/tcpopt.t.json')
-rw-r--r-- | tests/py/any/tcpopt.t.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/py/any/tcpopt.t.json b/tests/py/any/tcpopt.t.json index 5c63fd6b..5cc6f8f4 100644 --- a/tests/py/any/tcpopt.t.json +++ b/tests/py/any/tcpopt.t.json @@ -532,3 +532,56 @@ } } ] + +# tcp option mptcp subtype 0 +[ + { + "match": { + "left": { + "tcp option": { + "field": "subtype", + "name": "mptcp" + } + }, + "op": "==", + "right": 0 + } + } +] + +# tcp option mptcp subtype 1 +[ + { + "match": { + "left": { + "tcp option": { + "field": "subtype", + "name": "mptcp" + } + }, + "op": "==", + "right": 1 + } + } +] + +# tcp option mptcp subtype { 0, 2} +[ + { + "match": { + "left": { + "tcp option": { + "field": "subtype", + "name": "mptcp" + } + }, + "op": "==", + "right": { + "set": [ + 0, + 2 + ] + } + } + } +] |