Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F276C4332F for ; Tue, 13 Dec 2022 13:38:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235382AbiLMNia (ORCPT ); Tue, 13 Dec 2022 08:38:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235344AbiLMNi3 (ORCPT ); Tue, 13 Dec 2022 08:38:29 -0500 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6F4122C for ; Tue, 13 Dec 2022 05:38:28 -0800 (PST) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1p55UH-00011h-UO; Tue, 13 Dec 2022 14:38:25 +0100 From: Florian Westphal To: Cc: Florian Westphal Subject: [PATCH nft] doc: add/update can be used with maps too Date: Tue, 13 Dec 2022 14:38:21 +0100 Message-Id: <20221213133821.2260-1-fw@strlen.de> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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 --- 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