Skip to contentSkip to conversation

doc: add/update can be used with maps too

PATCH New Florian Westphal 1 participant 1 message Dec 13, 2022 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 doc: add/update can be used with maps too

The man page implies that add/update are only supported with sets, but this can be used with maps as well.

---
 doc/statements.txt | 4 ++++
 1 file changed, 4 insertions(+)
doc/statements.txt +4 -0
index bda63bb3bc38..6758049b0513 100644
@@ -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'] *}*
 
Signature · 1 line
2.37.4