On Sat, 29 Oct 2016, Florian Westphal wrote:
Jon Jensen <jon@xxxxxxxxxxxx> wrote:
"When used twice" was used twice. :) Make it match the description in
main.c instead.
Numeric output: Addresses and other information
that might need network traffic to resolve to symbolic names
- are shown numerically (default behaviour). When used twice,
+ are shown numerically (default behaviour). When used once,
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.
That paragraph doesn't match what nft is doing:
nft list table filter
ip saddr 127.0.0.1 tcp dport ssh skuid "root"
nft -n list table filter
ip saddr 127.0.0.1 tcp dport ssh skuid "root"
nft -nn list table filter
ip saddr 127.0.0.1 tcp dport 22 skuid "root" // doc says this would be 'skuid 0'
src/nft -nnn list table filter
ip saddr 127.0.0.1 tcp dport 22 skuid 0
So I suggest a rewrite of that section, e.g.
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 (port numbers) are shown numerically. When used
three times, protocol numbers and UIDs/GIDs are also shown numerically.
Ah, very good point.
I reviewed the program source and see there is no "and other information":
A single -n option just prevents IPv4 & IPv6 address lookup. So that can
be simplified.
(I don't like the repeated use of 'shown numerically', but I don't have
a better idea at the moment, and also don't care that much about this
..)
Agreed, but I failed to find a better way to say it.
I'll send a revised patch separately.
By the way, what environment are most developers building the manpage in?
I'm using Fedora 24, and ran into a couple of snags.
First, I had package docbook-utils installed, which provides a docbook2man
program, but it does not have the --xinclude option the Makefile tries to
use.
Then I installed package docbook2X, which provides db2x_docbook2man, but
configure prefers the other docbook2man if it exists.
So I uninstalled docbook-utils, and then configure chose db2x_docbook2man.
But by default it does not allow any network access, and nft.xml requires
an XML DTD that isn't locally available and must be fetched over the
network. So this error happens:
make[2]: Entering directory '/misc/repos/git/nftables/doc'
GEN nft.8
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
nft.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
^
nft.xml:3079: parser error : Entity 'copy' not defined
Copyright © 2008-2014 Patrick McHardy <email>kaber@xxxxxxxxx</email>
^
If I run manually with the -N option to allow network download of the
DTDs, it then works:
db2x_docbook2man -N --xinclude nft.xml
So I just wonder if I'm missing some package of local DTDs or if other
developers are just building somewhere else and the Fedora environment
just isn't getting used.
Thanks,
Jon
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html