summaryrefslogtreecommitdiffstats
path: root/doc/libnftables-json.adoc
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-08-29 16:23:24 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-30 12:19:36 +0200
commitdfd72398d44ebbe17929d6e8ca0c870087a0c644 (patch)
treea4dbab2e4c814f99f7ffe2d4831a82ceb249c249 /doc/libnftables-json.adoc
parent8125785d5c5d35ec275e508166091d5472748bc1 (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 'doc/libnftables-json.adoc')
-rw-r--r--doc/libnftables-json.adoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/libnftables-json.adoc b/doc/libnftables-json.adoc
index 74e7d027..6000e98d 100644
--- a/doc/libnftables-json.adoc
+++ b/doc/libnftables-json.adoc
@@ -79,7 +79,7 @@ translates into JSON as such:
"expr": [
{ "match": {
"left": { "payload": {
- "name": "tcp",
+ "protocol": "tcp",
"field": "dport"
}},
"right": 22
@@ -1004,14 +1004,13 @@ the second one the upper boundary.
[verse]
____
*{ "payload": {
- "name": "raw",
"base":* 'BASE'*,
"offset":* 'NUMBER'*,
"len":* 'NUMBER'
*}}*
*{ "payload": {
- "name":* 'STRING'*,
+ "protocol":* 'STRING'*,
"field":* 'STRING'
*}}*
@@ -1030,7 +1029,8 @@ point (*base*). Following *base* values are accepted:
*"th"*::
Offset is relative to Transport Layer header start offset.
-The second form allows to reference a field by name (*field*) in a named packet header (*name*).
+The second form allows to reference a field by name (*field*) in a named packet
+header (*protocol*).
=== EXTHDR
[verse]