[PATCH nftables] doc: fix synopsis for ct expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Anders K. Pedersen <akp@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
---
 doc/nft.xml | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git a/doc/nft.xml b/doc/nft.xml
index 3b215f8..32cafe9 100644
--- a/doc/nft.xml
+++ b/doc/nft.xml
@@ -1971,22 +1971,27 @@ filter output oif eth0
 						<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>��.n��������+%������w��{.n����z��׫���n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux