summaryrefslogtreecommitdiffstats
path: root/doc/nft.xml
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-01-14 04:56:32 +0100
committerFlorian Westphal <fw@strlen.de>2016-01-15 15:07:13 +0100
commit4a1923cdb13b0eed54b6ee0387ad0460c0cb78b9 (patch)
treea74ec1068102f7b3b6619570474881bc1c9ca9f0 /doc/nft.xml
parent3f5ef7d63f9ef70855dedd9b5aa7eba2f63a1ec7 (diff)
doc: update ct expression
Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc/nft.xml')
-rw-r--r--doc/nft.xml45
1 files changed, 36 insertions, 9 deletions
diff --git a/doc/nft.xml b/doc/nft.xml
index dbc9cd5e..7cc99882 100644
--- a/doc/nft.xml
+++ b/doc/nft.xml
@@ -1931,6 +1931,13 @@ filter output oif eth0
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>
<group choice="req">
@@ -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>