From mboxrd@z Thu Jan 1 00:00:00 1970 From: Elise Lennion Subject: [PATCH nft] doc: Document maps Date: Mon, 13 Feb 2017 14:47:11 -0200 Message-ID: <20170213164711.GA12126@lennorien.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: pablo@netfilter.org Return-path: Received: from mail-qk0-f193.google.com ([209.85.220.193]:36820 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751007AbdBMQrR (ORCPT ); Mon, 13 Feb 2017 11:47:17 -0500 Received: by mail-qk0-f193.google.com with SMTP id p22so7902658qka.3 for ; Mon, 13 Feb 2017 08:47:17 -0800 (PST) Content-Disposition: inline Sender: netfilter-devel-owner@vger.kernel.org List-ID: This patch adds the missing documentation for maps. Also, updates sets policy to match maps. Signed-off-by: Elise Lennion --- doc/nft.xml | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/doc/nft.xml b/doc/nft.xml index 2825810..ed97859 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -784,7 +784,110 @@ filter input iif $int_ifs accept policy set policy - string: performance, memory + string: performance [default], memory + + + + + + + + Maps + + + add + map + family + table + map + { + type + flags + elements + size + policy + } + + + + delete + list + + map + family + table + map + + + + Maps store data based on some specific key used as input, they are uniquely identified by an user-defined name and attached to tables. + + + + + + + + Add a new map in the specified table. + + + + + + + + Delete the specified map. + + + + + + + + Display the elements in the specified map. + + + + + + + Map specifications + + + + + + + Keyword + Description + Type + + + + + type + data type of map elements + string ':' string: ipv4_addr, ipv6_addr, ether_addr, inet_proto, inet_service, mark, counter, quota. Counter and quota can't be used as keys + + + flags + map flags + string: constant, interval + + + elements + elements contained by the map + map data type + + + size + maximun number of elements in the map + unsigned integer (64 bit) + + + policy + map policy + string: performance [default], memory -- 2.7.4