]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc/nft.xml: Add deletion for objects via handles
authorHarsha Sharma <harshasharmaiitr@gmail.com>
Tue, 23 Jan 2018 22:03:10 +0000 (03:33 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Mar 2018 16:56:50 +0000 (17:56 +0100)
Add documentation for deletion of tables, chains, sets and objects
via unique handles.

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/nft.xml

index dbd4d3f35d8bccce95e2d6f7712593d3abb0e113..f7cf0777160b37ac09785cc9f0daa8d6c4a8fb43 100644 (file)
@@ -141,7 +141,7 @@ vi:ts=4 sw=4
                                <term><option>-a, --handle</option></term>
                                <listitem>
                                        <para>
-                                               Show rule handles in output.
+                                               Show object handles in output.
                                        </para>
                                </listitem>
                        </varlistentry>
@@ -555,6 +555,14 @@ filter input iif $int_ifs accept
                                <arg choice="opt"><replaceable>family</replaceable></arg>
                                <replaceable>table</replaceable>
                        </cmdsynopsis>
+                       <cmdsynopsis>
+                               <group choice="req">
+                                       <arg>delete</arg>
+                               </group>
+                               <command>table</command>
+                               <arg choice="opt"><replaceable>family</replaceable></arg>
+                               <literal> handle </literal><replaceable>handle</replaceable>
+                       </cmdsynopsis>
                </para>
 
                <para>
@@ -646,6 +654,15 @@ filter input iif $int_ifs accept
                                <replaceable>table</replaceable>
                                <replaceable>chain</replaceable>
                        </cmdsynopsis>
+                       <cmdsynopsis>
+                               <group choice="req">
+                                       <arg>delete</arg>
+                               </group>
+                               <command>chain</command>
+                               <arg choice="opt"><replaceable>family</replaceable></arg>
+                               <replaceable>table</replaceable>
+                               <literal> handle </literal><replaceable>handle</replaceable>
+                       </cmdsynopsis>
                        <cmdsynopsis>
                                <literal>rename</literal>
                                <command>chain</command>
@@ -924,6 +941,15 @@ table inet filter {
                                <replaceable>table</replaceable>
                                <replaceable>set</replaceable>
                        </cmdsynopsis>
+                       <cmdsynopsis>
+                               <group choice="req">
+                                       <arg>delete</arg>
+                               </group>
+                               <command> set</command>
+                               <arg choice="opt"><replaceable>family</replaceable></arg>
+                               <replaceable>table</replaceable>
+                               <literal> handle </literal><replaceable>handle</replaceable>
+                       </cmdsynopsis>
                        <cmdsynopsis>
                                <group choice="req">
                                        <arg>add</arg>
@@ -1292,6 +1318,15 @@ table inet filter {
                                <replaceable>table</replaceable>
                                <replaceable>object</replaceable>
                        </cmdsynopsis>
+                       <cmdsynopsis>
+                               <group choice="req">
+                                       <arg>delete</arg>
+                               </group>
+                               <command> type</command>
+                               <arg choice="opt"><replaceable>family</replaceable></arg>
+                               <replaceable>table</replaceable>
+                               <literal> handle </literal><replaceable>handle</replaceable>
+                       </cmdsynopsis>
                </para>
                <para>
                        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".