]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: fix synopsis for ct expression
authorAnders K. Pedersen <akp@cohaesio.com>
Fri, 28 Oct 2016 19:25:30 +0000 (19:25 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 31 Oct 2016 14:10:17 +0000 (15:10 +0100)
The nft man page command synopsis for the ct expression is currently:

       ct {state | direction | status | mark | expiration | helper | label |
          bytes | packets} {original | reply | {l3proto | protocol | saddr |
          daddr | proto-src | proto-dst | bytes | packets}}

which is not correct for the arguments that should be prefixed with
"original" or "reply". Change this to

       ct {state | direction | status | mark | expiration | helper | label |
          l3proto | protocol | bytes | packets}
       ct {original | reply} {l3proto | protocol | saddr | daddr | proto-src |
          proto-dst | bytes | packets}

Signed-off-by: Anders K. Pedersen <akp@cohaesio.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.xml

index 827458ac9d6acc24b21fc2d218675154a3f3d095..d11abca4b64a67403804b4a9704d8001c3065ee9 100644 (file)
@@ -2128,22 +2128,27 @@ inet filter meta nfproto ipv6 output rt nexthop fd00::1
                                                <arg>expiration</arg>
                                                <arg>helper</arg>
                                                <arg>label</arg>
+                                               <arg>l3proto</arg>
+                                               <arg>protocol</arg>
                                                <arg>bytes</arg>
                                                <arg>packets</arg>
                                        </group>
+                               </cmdsynopsis>
+                               <cmdsynopsis>
+                                       <command>ct</command>
                                        <group choice="req">
                                                <arg>original</arg>
                                                <arg>reply</arg>
-                                               <group choice="req">
-                                                       <arg>l3proto</arg>
-                                                       <arg>protocol</arg>
-                                                       <arg>saddr</arg>
-                                                       <arg>daddr</arg>
-                                                       <arg>proto-src</arg>
-                                                       <arg>proto-dst</arg>
-                                                       <arg>bytes</arg>
-                                                       <arg>packets</arg>
-                                               </group>
+                                       </group>
+                                       <group choice="req">
+                                               <arg>l3proto</arg>
+                                               <arg>protocol</arg>
+                                               <arg>saddr</arg>
+                                               <arg>daddr</arg>
+                                               <arg>proto-src</arg>
+                                               <arg>proto-dst</arg>
+                                               <arg>bytes</arg>
+                                               <arg>packets</arg>
                                        </group>
                                </cmdsynopsis>
                        </para>