Skip to contentSkip to conversation

doc: fix synopsis for ct expression

PATCH New Anders K. Pedersen | Cohaesio 1 participant 1 message Oct 22, 2016 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix synopsis for ct expression

From: Anders K. Pedersen <[email protected]>

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}

---
 doc/nft.xml | 25 +++++++++++++++----------
 1 file changed, 15 insertions(+), 10 deletions(-)
doc/nft.xml +15 -10
index 3b215f8..32cafe9 100644
@@ -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>