]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: correct some typos in asciidoc
authorArushi Singhal <arushisinghal19971997@gmail.com>
Tue, 31 Jul 2018 13:34:33 +0000 (19:04 +0530)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Aug 2018 15:58:04 +0000 (17:58 +0200)
Correct some typo mistakes done while converting man page source to
asciidoc.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/data-types.txt
doc/nft.txt
doc/payload-expression.txt
doc/primary-expression.txt
doc/stateful-objects.txt
doc/statements.txt

index 57aa3a40a81b5f49a70d4115d4ba18c9c654fd5f..2c6108fb61496c4cd04407195467817d87d41a19 100644 (file)
@@ -136,30 +136,18 @@ The  boolean type is a syntactical helper type in user space. It's use is in the
 right-hand side of a (typically implicit) relational expression to change the
 expression on the left-hand side into a boolean check (usually for existence). +
 
-The following keywords will automatically resolve into a  boolean  type with given value:
-The bitmask type (bitmask) is used for bitmasks.
+.The following keywords will automatically resolve into a boolean type with given value
 
 [options="header"]
 |==================
 |Keyword | Value
-|exits |
+|exists |
 1 |
 missing |
 0
 |===================
 
-[options="header"]
-|======================================
-|Expression | Behaviour
-|fib |
-Check route existence.
-|exthdr|
-Check IPv6 extension header existence.
-|tcp option |
-Check  TCP  option  header existence.
-|===================
-
-.expressions support a boolean comparison:
+.expressions support a boolean comparison
 [options="header"]
 |======================================
 |Expression | Behaviour
@@ -242,15 +230,15 @@ ICMP CODE TYPE
 [options="header"]
 |==================
 |Name | Keyword | Size | Base type
-|ICMP Type |
-icmp_type |
+|ICMP Code |
+icmp_code |
 8 bit |
 integer
 |===================
 
 The ICMP Code type is used to conveniently specify  the  ICMP  header's code field.
 
-.Keywords may be used when specifying the ICMP type
+.Keywords may be used when specifying the ICMP code
 [options="header"]
 |==================
 |Keyword | Value
@@ -339,7 +327,7 @@ ICMPV6 CODE TYPE
 |==================
 |Name | Keyword | Size | Base type
 |ICMPv6 Code |
-icmpv6_type |
+icmpv6_code |
 8 bit |
 integer
 |===================
@@ -412,7 +400,7 @@ ct_status|
 4 byte|
 bitmask
 |conntrack event bits|
-ct_events |
+ct_event |
 4 byte |
 bitmask
 |conntrack label|
@@ -456,7 +444,7 @@ For each of the types above, keywords are available for convenience:
 |expected|
 1
 |seen-reply|
-1
+2
 |assured|
 4
 |confirmed|
index d33d01ccbd1d1063019cc03213be3cdcf6816e19..d1eaf3bdb066c7bb97ff131262d9745070f56e3d 100644 (file)
@@ -218,7 +218,7 @@ RULESET
 -------
 [verse]
 {list | flush} *ruleset* ['family']
-\{export\} [*ruleset*] {'format'}
+export [*ruleset*] 'format'
 
 The *ruleset* keyword is used to identify the whole set of tables, chains, etc.
 currently in place in kernel. The following *ruleset* commands exist:
@@ -373,18 +373,15 @@ rule  index might change if a rule was inserted or deleted before the referred
 one. If the referred rule was deleted, the command is rejected by the kernel
 just as if an invalid 'handle' was given.
 
-*add*::
-Add a new rule described by the list of statements. The rule is appended to the
-given chain unless a position is specified, in which case the rule is appended
-to the rule given by the 'handle'. The alternative name position is deprecated
-and should not be used anymore.
-
+[horizontal]
+*add*:: Add a new rule described by the list of statements. The
+rule is appended to the given chain unless a position is specified, in which
+case the rule is appended to the rule given by the 'handle'. The alternative
+name position is deprecated and should not be used anymore.
 *insert*:: Similar to the *add* command, but the rule is prepended to the
-beginning of the chain or before the rule at the given position.
-
+beginning of the chain or before the rule with the given 'handle'.
 *replace*:: Similar to the add command, but the rule replaces the specified
 rule.
-
 *delete*:: Delete the specified rule.
 
 .*add a rule to ip table input chain*
index 3f47b4ec49b594c1100b188c4b416445db81a3c9..0aae8ebfa5eb4a2d3a81e3eb9fd3e55e64b1895d 100644 (file)
@@ -41,7 +41,12 @@ EtherType|
 ether_type
 |==================
 
-.ARP HEADER EXPRESSION
+ARP HEADER EXPRESSION
+~~~~~~~~~~~~~~~~~~~~~
+[verse]
+*arp* ['ARP' 'header' 'field']
+
+.ARP header expression
 [options="header"]
 |==================
 |Keyword| Description| Type
@@ -424,7 +429,7 @@ to match protocol fields of a transport header with protocol number 5, you need
 to manually exclude packets that have a different transport header, for instance
 my using meta l4proto 5 before the raw expression.
 
-.Support payload protocol bases
+.Supported payload protocol bases
 [options="header"]
 |==================
 |Base| Description
@@ -603,6 +608,6 @@ average  bytes per packet, see description for packets keyword |
 integer (64 bit)
 |zone|
 conntrack zone |
-integer (64 bit)
+integer (16 bit)
 |==========================================
 A description of conntrack-specific types listed above can be found sub-section CONNTRACK TYPES above.
index 88ea7edfe4837b391ee7310aa7bbdc64f2b23651..634930496b540e0d337f62d1e55211c144e8eb60 100644 (file)
@@ -27,7 +27,7 @@ real hook  protocol family, useful only in inet table|
 integer (32 bit)
 |l4proto|
 layer 4 protocol, skips ipv6 extension headers|
-integer (32 bit)
+integer (8 bit)
 |protocol|
 EtherType protocol value|
 ether_type
@@ -45,7 +45,7 @@ Input interface name |
 ifname
 |iiftype|
 Input interface type|
-iface_itype
+iface_type
 |oif|
 Output interface index|
 iface_index
index 57bf6272bd066a1a447d54f5c3f7ba6c69510a77..c2bc2968cee4804b35c1aa061e53a508c395c7e3 100644 (file)
@@ -18,7 +18,7 @@ name of helper type |
 quoted string (e.g. "ftp")
 |protocol |
 layer 4 protocol of the helper |
-address family (e.g. ip)
+string (e.g. ip)
 |l3proto |
 layer 3 protocol of the helper |
 address family (e.g. ip)
index 38d9982f1a613bae05c699a222948f4c7ac9eac7..a0053e0976113d9e3c5e81d12635d99214ce78ac 100644 (file)
@@ -96,7 +96,7 @@ Number  of packets to queue inside the kernel before sending them to userpace |
 unsigned integer (32 bit)
 |==================================
 
-.log statement options
+.log-flags
 [options="header"]
 |==================
 | Flag | Description
@@ -265,7 +265,7 @@ that is optional, makes it match over the specified rate.
 .limit statement values
 [options="header"]
 |==================
-|Value | Description | Type|
+|Value | Description | Type
 |packet_number |
 Number of packets |
 unsigned integer (32 bit)