From f9cb9580b924f6320005f429f7d59e52a38aff82 Mon Sep 17 00:00:00 2001 From: Duncan Roe Date: Sat, 2 Dec 2017 22:04:43 +1100 Subject: doc: nft.8 aim for consistent synopses throughout Single items in braces have the braces removed as per wiki Scripting: "It is simply overkill to define a set that only stores one single element". Items that were in braces or square brackets are made consistent, e.g. {family} expands to single wor Ip, inet &c., but (type) in set spec expands to "type type_name ;". Signed-off-by: Duncan Roe Signed-off-by: Florian Westphal --- doc/nft.xml | 147 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 73 insertions(+), 74 deletions(-) (limited to 'doc') diff --git a/doc/nft.xml b/doc/nft.xml index a1bfecd2..cbb3b802 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -552,7 +552,7 @@ filter input iif $int_ifs accept table family - table + table @@ -626,11 +626,11 @@ filter input iif $int_ifs accept chain - type - hook - device - priority ; - policy ; + type type + hook hook + device device + priority priority ; + policy policy ; @@ -642,16 +642,16 @@ filter input iif $int_ifs accept chain family - table - chain + table + chain - rename + rename chain family - table - chain - newname + table + chain + newname @@ -798,27 +798,27 @@ filter input iif $int_ifs accept rule family - table - chain + table + chain position position - statement + statement... - replace - rule + + replace rule family - table - chain - handle handle - statement + table + chain + handle handle + statement... - delete + delete rule family - table - chain - handle handle + table + chain + handle handle @@ -869,19 +869,19 @@ filter input iif $int_ifs accept Sets - add + add set family - table - set - { - type - flags - timeout - gc-interval - elements - size - policy + table + set + { type + type ; + flags flags ; + timeout timeout ; + gc-interval gc-interval ; + elements = { element[,...] } ; + size size ; + policy policy ; } @@ -892,8 +892,8 @@ filter input iif $int_ifs accept set family - table - set + table + set @@ -902,11 +902,10 @@ filter input iif $int_ifs accept element family - table - set + table + set { - elements - } + element[,...] } @@ -1022,17 +1021,17 @@ filter input iif $int_ifs accept Maps - add + add map family - table - map - { - type - flags - elements - size - policy + table + map + { type + type + flags flags ; + elements = { element[,...] } ; + size size ; + policy policy ; } @@ -1043,8 +1042,8 @@ filter input iif $int_ifs accept map family - table - map + table + map @@ -1053,10 +1052,10 @@ filter input iif $int_ifs accept element family - table - map + table + map { - elements + elements = { element[,...] } ; } @@ -1171,8 +1170,8 @@ filter input iif $int_ifs accept type family - table - object + table + object @@ -1219,13 +1218,15 @@ filter input iif $int_ifs accept ct - helper - type - type - protocol - protocol - l3proto - family + helper + helper + { type + type + protocol + protocol + ; + l3proto family ; + } @@ -1382,7 +1383,7 @@ table inet myhelpers { describe - expression + expression @@ -2736,7 +2737,7 @@ filter output oif eth0 saddr daddr - + mark iif oif @@ -4178,7 +4179,7 @@ ip6 filter input frag more-fragments 1 counter jump goto - chain + chain @@ -4451,9 +4452,7 @@ ip6 filter output log flags all reject - with - tcp - reset + with tcp reset @@ -4509,10 +4508,10 @@ ip6 filter output log flags all counter - packets + + packets number - - bytes + bytes number -- cgit v1.2.3