From b2d7b78af50d199201e7e0d6de7c1ba9ba471c12 Mon Sep 17 00:00:00 2001 From: Elise Lennion Date: Mon, 13 Feb 2017 14:47:11 -0200 Subject: doc: Document maps This patch adds the missing documentation for maps. Also, updates sets policy to match maps. Signed-off-by: Elise Lennion Signed-off-by: Pablo Neira Ayuso --- doc/nft.xml | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) (limited to 'doc/nft.xml') diff --git a/doc/nft.xml b/doc/nft.xml index 28258104..ed978594 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 -- cgit v1.2.3