summaryrefslogtreecommitdiffstats
path: root/doc/nft.xml
diff options
context:
space:
mode:
authorElise Lennion <elise.lennion@gmail.com>2017-03-17 12:04:06 -0300
committerPablo Neira Ayuso <pablo@netfilter.org>2017-03-20 11:17:23 +0100
commit6d37dae4b313e162d3196c2e5aa1670dbaf43bff (patch)
tree9da62041a0e290aa0e457f230f4e6e5863b470a7 /doc/nft.xml
parent2daa0ee27fe13a9d64105f29144038fcaf4e7e1d (diff)
parser_bison: Allow flushing maps
This patch enables the command flush on maps, which removes all entries in it: $ nft flush map filter map1 Command above flushes map 'map1' in table 'filter'. The documentation was updated accordingly. Signed-off-by: Elise Lennion <elise.lennion@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'doc/nft.xml')
-rw-r--r--doc/nft.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/nft.xml b/doc/nft.xml
index d4121846..5b754690 100644
--- a/doc/nft.xml
+++ b/doc/nft.xml
@@ -812,6 +812,7 @@ filter input iif $int_ifs accept
<group choice="req">
<arg>delete</arg>
<arg>list</arg>
+ <arg>flush</arg>
</group>
<command> map</command>
<arg choice="opt"><replaceable>family</replaceable></arg>
@@ -848,6 +849,14 @@ filter input iif $int_ifs accept
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>flush</option></term>
+ <listitem>
+ <para>
+ Remove all elements from the specified map.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
<table frame="all">