From dfd72398d44ebbe17929d6e8ca0c870087a0c644 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 29 Aug 2018 16:23:24 +0200 Subject: JSON: Review payload expression For raw payloads, property "name" is not needed, it's clearly identified by base/offset/len properties. In non-raw payload expressions, rename property "name" to "protocol" as suggested during NFWS. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- tests/py/ip/dnat.t.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tests/py/ip/dnat.t.json') diff --git a/tests/py/ip/dnat.t.json b/tests/py/ip/dnat.t.json index f0140305..3efa220c 100644 --- a/tests/py/ip/dnat.t.json +++ b/tests/py/ip/dnat.t.json @@ -13,7 +13,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "right": { @@ -43,7 +43,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "op": "!=", @@ -74,7 +74,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "right": { @@ -108,7 +108,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "op": "!=", @@ -143,7 +143,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "op": "!=", @@ -174,7 +174,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "right": 81 @@ -229,7 +229,7 @@ { "payload": { "field": "daddr", - "name": "ip" + "protocol": "ip" } } ] -- cgit v1.2.3