* [PATCH nft] doc: add/update can be used with maps too
@ 2022-12-13 13:38 Florian Westphal
0 siblings, 0 replies; only message in thread
From: Florian Westphal @ 2022-12-13 13:38 UTC (permalink / raw)
To: netfilter-devel; +Cc: Florian Westphal
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 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/doc/statements.txt b/doc/statements.txt
index bda63bb3bc38..6758049b0513 100644
--- a/doc/statements.txt
+++ b/doc/statements.txt
@@ -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'] *}*
--
2.37.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-13 13:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-13 13:38 [PATCH nft] doc: add/update can be used with maps too Florian Westphal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).