summaryrefslogtreecommitdiffstats
path: root/tests/py/any
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-11-03 12:04:20 +0100
committerFlorian Westphal <fw@strlen.de>2020-11-09 12:19:31 +0100
commitcb21869649208118ed61354e2674858e4ff6c23c (patch)
tree40a731079f30640fc112a6c2b73175f63742f880 /tests/py/any
parent881d8cb21c0b9168787b932f41b801593bde2216 (diff)
json: tcp: add raw tcp option match support
To similar change as in previous one, this time for the jason (de)serialization. Re-uses the raw payload match syntax, i.e. base,offset,length. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any')
-rw-r--r--tests/py/any/tcpopt.t.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/py/any/tcpopt.t.json b/tests/py/any/tcpopt.t.json
index b15e36ee..139e97d8 100644
--- a/tests/py/any/tcpopt.t.json
+++ b/tests/py/any/tcpopt.t.json
@@ -414,6 +414,40 @@
}
]
+# tcp option 255 missing
+[
+ {
+ "match": {
+ "left": {
+ "tcp option": {
+ "base": 255,
+ "len": 8,
+ "offset": 0
+ }
+ },
+ "op": "==",
+ "right": false
+ }
+ }
+]
+
+# tcp option @255,8,8 255
+[
+ {
+ "match": {
+ "left": {
+ "tcp option": {
+ "base": 255,
+ "len": 8,
+ "offset": 8
+ }
+ },
+ "op": "==",
+ "right": 255
+ }
+ }
+]
+
# tcp option window exists
[
{