From 2acc8776e8b436566fc7d73161ef08e6b77b0c45 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 27 Jul 2021 22:21:48 +0200 Subject: tests: py: idempotent tcp flags & syn != 0 to tcp flag syn Add a test to cover this case. Signed-off-by: Pablo Neira Ayuso --- tests/py/inet/tcp.t.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/py/inet/tcp.t.json') diff --git a/tests/py/inet/tcp.t.json b/tests/py/inet/tcp.t.json index 033a4f22..6155c81f 100644 --- a/tests/py/inet/tcp.t.json +++ b/tests/py/inet/tcp.t.json @@ -1521,6 +1521,22 @@ } ] +# tcp flags & syn != 0 +[ + { + "match": { + "left": { + "payload": { + "field": "flags", + "protocol": "tcp" + } + }, + "op": "in", + "right": "syn" + } + } +] + # tcp flags & (fin | syn | rst | ack) syn [ { -- cgit v1.2.3