]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: update ct expression
authorFlorian Westphal <fw@strlen.de>
Thu, 14 Jan 2016 03:56:32 +0000 (04:56 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 15 Jan 2016 14:07:13 +0000 (15:07 +0100)
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.xml

index dbc9cd5e6ba97e47cc9cbb8d950406da6ac55c52..7cc998829b8ac08f59d15bece9c54cae8c3fa53e 100644 (file)
@@ -1930,6 +1930,13 @@ filter output oif eth0
                        <para>
                                Conntrack expressions refer to meta data of the connection tracking entry associated with a packet.
                        </para>
+                       <para>
+                               There are three types of conntrack expressions. Some conntrack expressions require the flow
+                               direction before the conntrack key, others must be used directly because they are
+                               direction agnostic.  The <command>packets<command> and </command>bytes</command> keywords can be used
+                               with or without a direction.  If the direction is omitted, the sum of the original and the reply
+                               direction is returned.
+                       </para>
                        <para>
                                <cmdsynopsis>
                                        <command>ct</command>
@@ -1941,12 +1948,22 @@ filter output oif eth0
                                                <arg>expiration</arg>
                                                <arg>helper</arg>
                                                <arg>label</arg>
-                                               <arg>l3proto</arg>
-                                               <arg>saddr</arg>
-                                               <arg>daddr</arg>
-                                               <arg>protocol</arg>
-                                               <arg>proto-src</arg>
-                                               <arg>proto-dst</arg>
+                                               <arg>bytes</arg>
+                                               <arg>packets</arg>
+                                       </group>
+                                       <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>
                                </cmdsynopsis>
                        </para>
@@ -2003,7 +2020,7 @@ filter output oif eth0
                                                        <row>
                                                                <entry>l3proto</entry>
                                                                <entry>Layer 3 protocol of the connection</entry>
-                                                               <entry>nf_proto FIXME</entry>
+                                                               <entry>nf_proto</entry>
                                                        </row>
                                                        <row>
                                                                <entry>saddr</entry>
@@ -2023,12 +2040,22 @@ filter output oif eth0
                                                        <row>
                                                                <entry>proto-src</entry>
                                                                <entry>Layer 4 protocol source for the given direction</entry>
-                                                               <entry>FIXME</entry>
+                                                               <entry>integer (16 bit)</entry>
                                                        </row>
                                                        <row>
                                                                <entry>proto-dst</entry>
                                                                <entry>Layer 4 protocol destination for the given direction</entry>
-                                                               <entry>FIXME</entry>
+                                                               <entry>integer (16 bit)</entry>
+                                                       </row>
+                                                       <row>
+                                                               <entry>packets</entry>
+                                                               <entry>packet count seen in the given direction or sum of original and reply</entry>
+                                                               <entry>integer (64 bit)</entry>
+                                                       </row>
+                                                       <row>
+                                                               <entry>bytes</entry>
+                                                               <entry>bytecount seen, see description for <command>packets</command> keyword</entry>
+                                                               <entry>integer (64 bit)</entry>
                                                        </row>
                                                </tbody>
                                        </tgroup>