From: Elise Lennion Date: Thu, 9 Feb 2017 13:48:16 +0000 (-0200) Subject: doc: Document stateful objects X-Git-Tag: v0.8~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5039aa7a1b3ccfcc703286193e50cc1493bffaf;p=thirdparty%2Fnftables.git doc: Document stateful objects This patch adds documentation for stateful objects and updates tables description to mention them. Signed-off-by: Elise Lennion Signed-off-by: Pablo Neira Ayuso --- diff --git a/doc/nft.xml b/doc/nft.xml index 78e112f39..ac31c3b90 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -453,7 +453,7 @@ filter input iif $int_ifs accept - Tables are containers for chains and sets. They are identified by their address family + Tables are containers for chains, sets and stateful objects. They are identified by their address family and their name. The address family must be one of @@ -667,6 +667,140 @@ filter input iif $int_ifs accept + + Stateful objects + + + + add + delete + list + reset + + type + family + table + object + + + + Stateful objects are attached to tables and are identified by an unique name. They group stateful information from rules, to reference them in rules the keywords "type name" are used e.g. "counter name". + + + + + + + + Add a new stateful object in the specified table. + + + + + + + + Delete the specified object. + + + + + + + + Display stateful information the object holds. + + + + + + + + List-and-reset stateful object. + + + + + + + Counter + + + counter + packets bytes + + + + Counter specifications + + + + + + + Keyword + Description + Type + + + + + packets + initial count of packets + unsigned integer (64 bit) + + + bytes + initial count of bytes + unsigned integer (64 bit) + + + +
+
+ + + Quota + + + quota + + over + until + + used + + + + Quota specifications + + + + + + + Keyword + Description + Type + + + + + quota + quota limit, used as the quota name + Two arguments, unsigned interger (64 bit) and string: bytes, kbytes, mbytes. "over" and "until" go before these arguments + + + used + initial value of used quota + Two arguments, unsigned interger (64 bit) and string: bytes, kbytes, mbytes + + + +
+
+
+ Expressions