summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/ip_tcp.t.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/py/ip/ip_tcp.t.json')
-rw-r--r--tests/py/ip/ip_tcp.t.json60
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/py/ip/ip_tcp.t.json b/tests/py/ip/ip_tcp.t.json
new file mode 100644
index 00000000..82b7cdcc
--- /dev/null
+++ b/tests/py/ip/ip_tcp.t.json
@@ -0,0 +1,60 @@
+# ip protocol tcp tcp dport 22
+[
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "protocol",
+ "name": "ip"
+ }
+ },
+ "right": "tcp"
+ }
+ },
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "dport",
+ "name": "tcp"
+ }
+ },
+ "right": 22
+ }
+ }
+]
+
+# ip protocol tcp meta mark set 1 tcp dport 22
+[
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "protocol",
+ "name": "ip"
+ }
+ },
+ "right": "tcp"
+ }
+ },
+ {
+ "mangle": {
+ "left": {
+ "meta": "mark"
+ },
+ "right": 1
+ }
+ },
+ {
+ "match": {
+ "left": {
+ "payload": {
+ "field": "dport",
+ "name": "tcp"
+ }
+ },
+ "right": 22
+ }
+ }
+]
+