diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-29 16:23:24 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-30 12:19:36 +0200 |
commit | dfd72398d44ebbe17929d6e8ca0c870087a0c644 (patch) | |
tree | a4dbab2e4c814f99f7ffe2d4831a82ceb249c249 /tests/py/inet/ether-ip.t.json | |
parent | 8125785d5c5d35ec275e508166091d5472748bc1 (diff) |
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 <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/ether-ip.t.json')
-rw-r--r-- | tests/py/inet/ether-ip.t.json | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/py/inet/ether-ip.t.json b/tests/py/inet/ether-ip.t.json index accb9d69..b5356bb3 100644 --- a/tests/py/inet/ether-ip.t.json +++ b/tests/py/inet/ether-ip.t.json @@ -5,7 +5,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "right": 22 @@ -24,7 +24,7 @@ "left": { "payload": { "field": "daddr", - "name": "ip" + "protocol": "ip" } }, "right": "1.2.3.4" @@ -35,7 +35,7 @@ "left": { "payload": { "field": "saddr", - "name": "ether" + "protocol": "ether" } }, "right": "00:0f:54:0c:11:04" @@ -53,7 +53,7 @@ "left": { "payload": { "field": "dport", - "name": "tcp" + "protocol": "tcp" } }, "right": 22 @@ -64,7 +64,7 @@ "left": { "payload": { "field": "daddr", - "name": "ip" + "protocol": "ip" } }, "right": "1.2.3.4" @@ -75,7 +75,7 @@ "left": { "payload": { "field": "saddr", - "name": "ether" + "protocol": "ether" } }, "right": "00:0f:54:0c:11:04" |