]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
tests/py: Add missing JSON equivalent for rule in inet/tcp.t
authorPhil Sutter <phil@nwl.cc>
Mon, 28 May 2018 16:51:09 +0000 (18:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 1 Jun 2018 07:16:48 +0000 (09:16 +0200)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/inet/tcp.t.json

index 559206dfd323f14db73c8a354d02a9d24d776ad4..f5df72aa252a6c5fdb2c148e9e7952a320f01715 100644 (file)
     }
 ]
 
+# tcp flags == syn
+[
+    {
+        "match": {
+            "left": {
+                "payload": {
+                    "field": "flags",
+                    "name": "tcp"
+                }
+            },
+            "op": "==",
+            "right": "syn"
+        }
+    }
+]
+
 # tcp flags & (syn|fin) == (syn|fin)
 [
     {