From 51d3566eb4983be96ab2eaa8c176696206114d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 13 Nov 2018 11:46:08 +0200 Subject: doc: Spelling and grammar fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ville Skyttä Signed-off-by: Pablo Neira Ayuso --- doc/data-types.txt | 2 +- doc/libnftables-json.adoc | 4 ++-- doc/libnftables.adoc | 2 +- doc/nft.txt | 6 +++--- doc/primary-expression.txt | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/data-types.txt b/doc/data-types.txt index 2692afde..5c132f86 100644 --- a/doc/data-types.txt +++ b/doc/data-types.txt @@ -136,7 +136,7 @@ boolean | integer |=================== -The boolean type is a syntactical helper type in userspace. It's use is in the +The boolean type is a syntactical helper type in userspace. Its 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). + diff --git a/doc/libnftables-json.adoc b/doc/libnftables-json.adoc index 414702c7..c95ab320 100644 --- a/doc/libnftables-json.adoc +++ b/doc/libnftables-json.adoc @@ -40,11 +40,11 @@ library standard output into JSON format. Error output remains unaffected. == GLOBAL STRUCTURE In general, any JSON input or output is enclosed in an object with a single -property named 'nftables'. It's value is an array containing commands (for +property named 'nftables'. Its value is an array containing commands (for input) or ruleset elements (for output). A command is an object with a single property whose name identifies the command. -It's value is a ruleset element - basically identical to output elements apart +Its value is a ruleset element - basically identical to output elements apart from certain properties which may be interpreted differently or are required when output generally omits them. diff --git a/doc/libnftables.adoc b/doc/libnftables.adoc index 12deebcb..7f6eef8e 100644 --- a/doc/libnftables.adoc +++ b/doc/libnftables.adoc @@ -46,7 +46,7 @@ ____ == DESCRIPTION This library was designed with nftables integration into applications in mind. -It's API is therefore kept as simple as possible, which somewhat limits its flexibility. +Its API is therefore kept as simple as possible, which somewhat limits its flexibility. Due to support for JSON markup of input and output though, convenience in constructing and parsing of input and output data may be achieved by using a third-party library such as *libjansson*. At the very basic level, one has to allocate a new object of type *struct nft_ctx* using *nft_ctx_new*() function, then pass commands via *nft_run_cmd_from_buffer*() or *nft_run_cmd_from_filename*() functions. diff --git a/doc/nft.txt b/doc/nft.txt index fca91450..88f5b0d4 100644 --- a/doc/nft.txt +++ b/doc/nft.txt @@ -392,9 +392,9 @@ the others. See the following tables that describe the values and compatibility. | srcnat | 300 | postrouting |================== -Basic arithmetic expressions (addition and substraction) can also be achieved +Basic arithmetic expressions (addition and subtraction) can also be achieved with these standard names to ease relative prioritizing, eg. *mangle - 5* stands -for *-155*. Values will also be printed like this untill the value is not +for *-155*. Values will also be printed like this until the value is not further than 10 form the standard value. Base chains also allow to set the chain's *policy*, i.e. what happens to @@ -592,7 +592,7 @@ address family is a dummy family which is used to create hybrid IPv4/IPv6 tables. When no address family is specified, ip is used by default. The *priority* can be a signed integer or *filter* which stands for 0. Addition -and substraction can be used to set relative priority eg. filter + 5 equals to +and subtraction can be used to set relative priority eg. filter + 5 equals to 5. [horizontal] diff --git a/doc/primary-expression.txt b/doc/primary-expression.txt index 5846898e..6995d327 100644 --- a/doc/primary-expression.txt +++ b/doc/primary-expression.txt @@ -328,7 +328,7 @@ IPSEC EXPRESSIONS *ipsec* {in | out} [ spnum 'NUM' ] {reqid | spi } *ipsec* {in | out} [ spnum 'NUM' ] {ip | ip6 } { saddr | daddr } -A ipsec expression refers to ipsec data associated with a packet. +An ipsec expression refers to ipsec data associated with a packet. The 'in' or 'out' keyword needs to be used to specify if the expression should examine inbound or outbound policies. The 'in' keyword can be used in the -- cgit v1.2.3