diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2022-09-22 09:00:42 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-09-22 15:46:42 +0200 |
commit | 2b20ed65b82d812fc12923dbdf2c54094dbaa7e8 (patch) | |
tree | 22248f455a808a2864b653616766d5df0ffa8ee4 /doc/libnftables.adoc | |
parent | 7e6be917987c3ab0261bf543eb307cbb2679294f (diff) |
doc, src: make some spelling and grammatical improvements
Fix a couple of spelling mistakes:
'expresion' -> 'expression'
and correct some non-native usages:
'allows to' -> 'allows one to'
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'doc/libnftables.adoc')
-rw-r--r-- | doc/libnftables.adoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/libnftables.adoc b/doc/libnftables.adoc index 550012b4..7ea0d56e 100644 --- a/doc/libnftables.adoc +++ b/doc/libnftables.adoc @@ -71,7 +71,7 @@ The *nft_ctx_free*() function frees the context object pointed to by 'ctx', incl === nft_ctx_get_dry_run() and nft_ctx_set_dry_run() Dry-run setting controls whether ruleset changes are actually committed on kernel side or not. -It allows to check whether a given operation would succeed without making actual changes to the ruleset. +It allows one to check whether a given operation would succeed without making actual changes to the ruleset. The default setting is *false*. The *nft_ctx_get_dry_run*() function returns the dry-run setting's value contained in 'ctx'. @@ -121,7 +121,7 @@ NFT_CTX_OUTPUT_JSON:: This flag controls JSON output format, input is auto-detected. NFT_CTX_OUTPUT_ECHO:: The echo setting makes libnftables print the changes once they are committed to the kernel, just like a running instance of *nft monitor* would. - Amongst other things, this allows to retrieve an added rule's handle atomically. + Amongst other things, this allows one to retrieve an added rule's handle atomically. NFT_CTX_OUTPUT_GUID:: Display UID and GID as described in the /etc/passwd and /etc/group files. NFT_CTX_OUTPUT_NUMERIC_PROTO:: @@ -199,9 +199,9 @@ On failure, the functions return non-zero which may only happen if buffering was The *nft_ctx_get_output_buffer*() and *nft_ctx_get_error_buffer*() functions return a pointer to the buffered output (which may be empty). === nft_ctx_add_include_path() and nft_ctx_clear_include_path() -The *include* command in nftables rulesets allows to outsource parts of the ruleset into a different file. +The *include* command in nftables rulesets allows one to outsource parts of the ruleset into a different file. The include path defines where these files are searched for. -Libnftables allows to have a list of those paths which are searched in order. +Libnftables allows one to have a list of those paths which are searched in order. The default include path list contains a single compile-time defined entry (typically '/etc/'). The *nft_ctx_add_include_path*() function extends the list of include paths in 'ctx' by the one given in 'path'. @@ -210,7 +210,7 @@ The function returns zero on success or non-zero if memory allocation failed. The *nft_ctx_clear_include_paths*() function removes all include paths, even the built-in default one. === nft_ctx_add_var() and nft_ctx_clear_vars() -The *define* command in nftables ruleset allows to define variables. +The *define* command in nftables ruleset allows one to define variables. The *nft_ctx_add_var*() function extends the list of variables in 'ctx'. The variable must be given in the format 'key=value'. The function returns zero on success or non-zero if the variable is malformed. |