summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/tcp.t.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip/tcp.t.json')
-rw-r--r--tests/py/ip/tcp.t.json59
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/py/ip/tcp.t.json b/tests/py/ip/tcp.t.json
new file mode 100644
index 00000000..e04cc1e2
--- /dev/null
+++ b/tests/py/ip/tcp.t.json
@@ -0,0 +1,59 @@
+# ip protocol tcp tcp dport ssh accept
+[
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "protocol",
+ "name": "ip"
+ }
+ },
+ "right": "tcp"
+ }
+ },
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "dport",
+ "name": "tcp"
+ }
+ },
+ "right": "ssh"
+ }
+ },
+ {
+ "accept": null
+ }
+]
+
+# ip protocol ne tcp udp dport ssh accept
+[
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "protocol",
+ "name": "ip"
+ }
+ },
+ "op": "!=",
+ "right": "tcp"
+ }
+ },
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "dport",
+ "name": "udp"
+ }
+ },
+ "right": "ssh"
+ }
+ },
+ {
+ "accept": null
+ }
+]
+