From 2a4a5a2c8ae21f2bcf7e81b5eafea91d799ee88a Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 29 Aug 2018 16:23:22 +0200 Subject: JSON: Make meta statement/expression extensible Lessons learned from fwd statement: We must not assume a given statement/expression may not receive further properties in the future. Therefore make meta value an object with a property "key" instead of just a string containing the key name. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- doc/libnftables-json.adoc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/libnftables-json.adoc b/doc/libnftables-json.adoc index e51e9d40..058573df 100644 --- a/doc/libnftables-json.adoc +++ b/doc/libnftables-json.adoc @@ -1060,7 +1060,19 @@ existence check in a *match* statement with boolean on right hand side. === META [verse] -*{ "meta":* 'STRING' *}* +____ +*{ "meta": { + "key":* 'META_KEY' +*}}* + +'META_KEY' := *"length"* | *"protocol"* | *"priority"* | *"random"* | *"mark"* | + *"iif"* | *"iifname"* | *"iiftype"* | *"oif"* | *"oifname"* | + *"oiftype"* | *"skuid"* | *"skgid"* | *"nftrace"* | + *"rtclassid"* | *"ibriport"* | *"obriport"* | *"ibridgename"* | + *"obridgename"* | *"pkttype"* | *"cpu"* | *"iifgroup"* | + *"oifgroup"* | *"cgroup"* | *"nfproto"* | *"l4proto"* | + *"secpath"* +____ Create a reference to packet meta data. -- cgit v1.2.3