From: Phil Sutter Subject: [nft PATCH 3/6] nft.8: Review reject statement description Date: Thu, 10 Aug 2017 19:29:17 +0200 Message-ID: <20170810172920.14893-4-phil@nwl.cc> References: <20170810172920.14893-1-phil@nwl.cc> Cc: netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:42123 "EHLO mail.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114AbdHJR3v (ORCPT ); Thu, 10 Aug 2017 13:29:51 -0400 In-Reply-To: <20170810172920.14893-1-phil@nwl.cc> Sender: netfilter-devel-owner@vger.kernel.org List-ID: - Describe 'type' argument datatypes in DATA TYPES section, then remove value list from reject statement description and refer to that section instead. - Fix synopsis: 'with ...' is optional. Signed-off-by: Phil Sutter --- doc/nft.xml | 317 ++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 256 insertions(+), 61 deletions(-) diff --git a/doc/nft.xml b/doc/nft.xml index 3ef88a79efd70..bc6b6fb72b6a7 100644 --- a/doc/nft.xml +++ b/doc/nft.xml @@ -1790,6 +1790,83 @@ filter output icmp type { echo-request, echo-reply } + ICMP Code type + + + + + + + + + + Name + Keyword + Size + Base type + + + + + ICMP Code + icmp_code + 8 bit + integer + + + +
+
+ + The ICMP Code type is used to conveniently specify the ICMP header's code field. + + + The following keywords may be used when specifying the ICMP code: + + + + + + + Keyword + Value + + + + + net-unreachable + 0 + + + host-unreachable + 1 + + + prot-unreachable + 2 + + + port-unreachable + 3 + + + net-prohibited + 9 + + + host-prohibited + 10 + + + admin-prohibited + 13 + + + +
+
+
+ ICMPv6 Type type @@ -1922,6 +1999,146 @@ filter output icmpv6 type { echo-request, echo-reply } + ICMPv6 Code type + +
+ + + + + + + + Name + Keyword + Size + Base type + + + + + ICMPv6 Code + icmpv6_code + 8 bit + integer + + + +
+
+ + The ICMPv6 Code type is used to conveniently specify the ICMPv6 header's code field. + + + The following keywords may be used when specifying the ICMPv6 code: + + + + + + + Keyword + Value + + + + + no-route + 0 + + + admin-prohibited + 1 + + + addr-unreachable + 3 + + + port-unreachable + 4 + + + policy-fail + 5 + + + reject-route + 6 + + + +
+
+
+ + ICMPvX Code type + + + + + + + + + + Name + Keyword + Size + Base type + + + + + ICMPvX Code + icmpx_code + 8 bit + integer + + + +
+
+ + The ICMPvX Code type abstraction is a set of values which + overlap between ICMP and ICMPv6 Code types to be used from the + inet family. + + + The following keywords may be used when specifying the ICMPvX code: + + + + + + + Keyword + Value + + + + + no-route + 0 + + + port-unreachable + 1 + + + host-unreachable + 2 + + + admin-prohibited + 3 + + + +
+
+
+ Conntrack types This is an overview of types used in ct @@ -4083,95 +4300,73 @@ ip6 filter output log flags all reject - with - - icmp - icmp6 - icmpx - - type - - icmp_type - icmp6_type - icmpx_type - + + with + + icmp + icmp6 + icmpx + + type + + icmp_type + icmp6_type + icmpx_type + + reject - with - tcp - reset + + with + tcp + reset + A reject statement is used to send back an error packet in response to the matched packet otherwise it is equivalent to drop so it is a terminating statement, ending rule traversal. This statement is only valid in the input, forward and output chains, and user-defined chains which are only called from those chains. + + + The different ICMP reject variants are meant for use in different table families: - reject statement type (ip) - - - - - - - Value - Description - Type - - - - - icmp_type - ICMP type response to be sent to the host - net-unreachable, host-unreachable, prot-unreachable, port-unreachable [default], net-prohibited, host-prohibited, admin-prohibited - - - -
- - reject statement type (ip6) - Value - Description + Variant + Family Type - icmp6_type - ICMPv6 type response to be sent to the host - no-route, admin-prohibited, addr-unreachable, port-unreachable [default], policy-fail, reject-route + icmp + ip + icmp_code - - -
- - reject statement type (inet) - - - - - - Value - Description - Type + icmp6 + ip6 + icmpv6_code - - - icmpx_type - ICMPvXtype abstraction response to be sent to the host, this is a set of types that overlap in IPv4 and IPv6 to be used from the inet family. - port-unreachable [default], admin-prohibited, no-route, host-unreachable + icmpx + inet + icmpx_code
+ + For a description of the different types and a list of supported + keywords refer to DATA TYPES section above. + The common default reject value is + port-unreachable. +
Counter statement -- 2.13.1