]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
Correct description of -n/--numeric option
authorJon Jensen <jon@endpoint.com>
Sat, 29 Oct 2016 04:18:11 +0000 (22:18 -0600)
committerFlorian Westphal <fw@strlen.de>
Sat, 29 Oct 2016 18:46:47 +0000 (20:46 +0200)
"When used twice" was used twice in the manpage. :)

And as Florian Westphal pointed out, it was also incorrect
for the -nn case.

Update the manpage and built-in help in main.c to match actual behavior.

Signed-off-by: Jon Jensen <jon@endpoint.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
doc/nft.xml
src/main.c

index cc1e4a4c3837c88111fd7a2afe64ef6deebe2b68..827458ac9d6acc24b21fc2d218675154a3f3d095 100644 (file)
@@ -111,12 +111,10 @@ vi:ts=4 sw=4
                                <term><option>-n, --numeric</option></term>
                                <listitem>
                                        <para>
-                                               Numeric output: Addresses and other information
-                                               that might need network traffic to resolve to symbolic names
-                                               are shown numerically (default behaviour). When used twice,
-                                               internet services are translated. When used twice, internet
-                                               services and UIDs/GIDs are also shown numerically. When used
-                                               three times, protocol numbers are also shown numerically.
+                                               Show data numerically. When used once (the default behaviour), skip
+                                               lookup of addresses to symbolic names. Use twice to also show Internet
+                                               services (port numbers) numerically. Use three times to also show
+                                               protocols and UIDs/GIDs numerically.
                                        </para>
                                </listitem>
                        </varlistentry>
@@ -124,7 +122,7 @@ vi:ts=4 sw=4
                                <term><option>-N</option></term>
                                <listitem>
                                        <para>
-                                               Translate IP addresses to DNS names.
+                                               Translate IP addresses to names. Usually requires network traffic for DNS lookup.
                                        </para>
                                </listitem>
                        </varlistentry>
index 39a47bbc250a304b1785310119dda14f273a5abf..5c72fc0c4756e09ff3076457e4695612db1c15de 100644 (file)
@@ -114,9 +114,8 @@ static void show_help(const char *name)
 "  -i, --interactive           Read input from interactive CLI\n"
 "\n"
 "  -n, --numeric                       When specified once, show network addresses numerically (default behaviour).\n"
-"                              When specified twice, show Internet services,\n"
-"                              user IDs and group IDs numerically.\n"
-"                              When specified thrice, also show protocols numerically.\n"
+"                              Specify twice to also show Internet services (port numbers) numerically.\n"
+"                              Specify three times to also show protocols, user IDs, and group IDs numerically.\n"
 "  -N                          Translate IP addresses to names.\n"
 "  -a, --handle                        Output rule handle.\n"
 "  -I, --includepath <directory>       Add <directory> to the paths searched for include files.\n"