]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: add/update can be used with maps too
authorFlorian Westphal <fw@strlen.de>
Tue, 13 Dec 2022 13:37:22 +0000 (14:37 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 13 Dec 2022 14:16:52 +0000 (15:16 +0100)
The man page implies that add/update are only supported with
sets, but this can be used with maps as well.

Signed-off-by: Florian Westphal <fw@strlen.de>
doc/statements.txt

index 9e0dd5a034c16bac76efa9409595c7663c1606e0..0532b2b16c7dcc3e215d49943dd86609a87d0796 100644 (file)
@@ -716,6 +716,10 @@ will not grow indefinitely) either from the set definition or from the statement
 that adds or updates them. The set statement can be used to e.g. create dynamic
 blacklists.
 
+Dynamic updates are also supported with maps. In this case, the *add* or
+*update* rule needs to provide both the key and the data element (value),
+separated via ':'.
+
 [verse]
 {*add* | *update*} *@*'setname' *{* 'expression' [*timeout* 'timeout'] [*comment* 'string'] *}*