]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: nft.8 add chain synopsis
authorDuncan Roe <duncan_roe@optusnet.com.au>
Fri, 6 Oct 2017 12:53:24 +0000 (14:53 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Oct 2017 12:56:26 +0000 (14:56 +0200)
The man page says this:

> {add | create} chain [family] table chain [ { {type} {hook} [device] {priority} } [policy] ]

But I suggest it should say this:

> {add | create} chain [family] table chain [ { {type} {hook} [device] {priority ;} [policy ;] } ]

i.e. the policy tuple should be inside the braces along with type, hook, device
& priority. Also the device & priority tuples each need to be followed by a
semicolon.

Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.xml

index c0f42ddccbebbf18a202a3fde8989e12854148fc..80ffcd772ee4c45b6eaec1696e632236c103678b 100644 (file)
@@ -664,9 +664,9 @@ filter input iif $int_ifs accept
                                                <arg choice="req"><replaceable>type</replaceable></arg>
                                                <arg choice="req"><replaceable>hook</replaceable></arg>
                                                <arg choice="opt"><replaceable>device</replaceable></arg>
-                                               <arg choice="req"><replaceable>priority</replaceable></arg>
+                                               <arg choice="req"><replaceable>priority</replaceable> ;</arg>
+                                               <arg choice="opt"><replaceable>policy</replaceable> ;</arg>
                                        </arg>
-                                       <arg choice="opt"><replaceable>policy</replaceable></arg>
                                </arg>
                        </cmdsynopsis>
                        <cmdsynopsis>