* [iptables PATCH 0/2] Document nfnl_osf utility
@ 2017-09-20 16:54 Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 1/2] utils: nfnl_osf: Fix synopsis in help text Phil Sutter
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Phil Sutter @ 2017-09-20 16:54 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel
This series fixes nfnl_osf help output a bit and introduces a (short)
man page.
Phil Sutter (2):
utils: nfnl_osf: Fix synopsis in help text
utils: Add a man page for nfnl_osf
configure.ac | 3 ++-
utils/.gitignore | 1 +
utils/Makefile.am | 4 ++++
utils/nfnl_osf.8.in | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
utils/nfnl_osf.c | 2 +-
5 files changed, 75 insertions(+), 2 deletions(-)
create mode 100644 utils/nfnl_osf.8.in
--
2.13.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [iptables PATCH 1/2] utils: nfnl_osf: Fix synopsis in help text
2017-09-20 16:54 [iptables PATCH 0/2] Document nfnl_osf utility Phil Sutter
@ 2017-09-20 16:54 ` Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 2/2] utils: Add a man page for nfnl_osf Phil Sutter
2017-10-04 13:53 ` [iptables PATCH 0/2] Document nfnl_osf utility Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Phil Sutter @ 2017-09-20 16:54 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel
* -d is optional
* -h is not really a flag, just anything not recognized triggers the
help output.
* That '<del rules>' bit is rather confusing than helpful.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
utils/nfnl_osf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utils/nfnl_osf.c b/utils/nfnl_osf.c
index 645ec648fcc63..720e3a38dbd36 100644
--- a/utils/nfnl_osf.c
+++ b/utils/nfnl_osf.c
@@ -438,7 +438,7 @@ int main(int argc, char *argv[])
break;
default:
fprintf(stderr,
- "Usage: %s -f fingerprints -d <del rules> -h\n",
+ "Usage: %s -f fingerprints [-d]\n",
argv[0]);
return -1;
}
--
2.13.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [iptables PATCH 2/2] utils: Add a man page for nfnl_osf
2017-09-20 16:54 [iptables PATCH 0/2] Document nfnl_osf utility Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 1/2] utils: nfnl_osf: Fix synopsis in help text Phil Sutter
@ 2017-09-20 16:54 ` Phil Sutter
2017-10-04 13:53 ` [iptables PATCH 0/2] Document nfnl_osf utility Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Phil Sutter @ 2017-09-20 16:54 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: netfilter-devel
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
configure.ac | 3 ++-
utils/.gitignore | 1 +
utils/Makefile.am | 4 ++++
utils/nfnl_osf.8.in | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 74 insertions(+), 1 deletion(-)
create mode 100644 utils/nfnl_osf.8.in
diff --git a/configure.ac b/configure.ac
index 221812a8f3f1f..9ca74743108ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -248,7 +248,8 @@ AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
libiptc/Makefile libiptc/libiptc.pc
libiptc/libip4tc.pc libiptc/libip6tc.pc
libxtables/Makefile utils/Makefile
- include/xtables-version.h include/iptables/internal.h])
+ include/xtables-version.h include/iptables/internal.h
+ utils/nfnl_osf.8])
AC_OUTPUT
diff --git a/utils/.gitignore b/utils/.gitignore
index 216d1e4a621ed..7c6afbf4e6a52 100644
--- a/utils/.gitignore
+++ b/utils/.gitignore
@@ -1,2 +1,3 @@
/nfnl_osf
+/nfnl_osf.8
/nfbpf_compile
diff --git a/utils/Makefile.am b/utils/Makefile.am
index c4192a9e73688..80029e303ff3b 100644
--- a/utils/Makefile.am
+++ b/utils/Makefile.am
@@ -6,8 +6,10 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include \
sbin_PROGRAMS =
pkgdata_DATA =
+man_MANS =
if HAVE_LIBNFNETLINK
+man_MANS += nfnl_osf.8
sbin_PROGRAMS += nfnl_osf
pkgdata_DATA += pf.os
@@ -23,3 +25,5 @@ if ENABLE_SYNCONF
sbin_PROGRAMS += nfsynproxy
nfsynproxy_LDADD = -lpcap
endif
+
+CLEANFILES = nfnl_osf.8
diff --git a/utils/nfnl_osf.8.in b/utils/nfnl_osf.8.in
new file mode 100644
index 0000000000000..dfff608928032
--- /dev/null
+++ b/utils/nfnl_osf.8.in
@@ -0,0 +1,67 @@
+.TH NFNL_OSF 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
+
+.SH NAME
+nfnl_osf \- OS fingerprint loader utility
+.SH SYNOPSIS
+
+.ad l
+.in +8
+.ti -8
+.B nfnl_osf
+.BI -f " fingerprints"
+[
+.B -d
+]
+
+.SH DESCRIPTION
+The
+.B nfnl_osf
+utility allows to load a set of operating system signatures into the kernel for
+later matching against using iptables'
+.B osf
+match.
+
+.SH OPTIONS
+
+.TP
+.BI -f " fingerprints"
+Read signatures from file
+.IR fingerprints .
+
+.TP
+.B -d
+Instead of adding the signatures from
+.I fingerprints
+into the kernel, remove them.
+
+.SH EXIT STATUS
+Exit status is 0 if command succeeded, otherwise a negative return code
+indicates the type of error which happened:
+
+.TP
+.B -1
+Illegal arguments passed, fingerprints file not readable or failure in netlink
+communication.
+
+.TP
+.B -ENOENT
+Fingerprints file not specified.
+
+.TP
+.B -EINVAL
+Netlink handle initialization failed or fingerprints file format invalid.
+
+.SH FILES
+
+An up to date set of operating system signatures can be downloaded from
+http://www.openbsd.org/cgi-bin/cvsweb/src/etc/pf.os .
+
+.SH SEE ALSO
+
+The description of
+.B osf
+match in
+.BR iptables-extensions (8)
+contains further information about the topic as well as example
+.B nfnl_osf
+invocations.
--
2.13.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [iptables PATCH 0/2] Document nfnl_osf utility
2017-09-20 16:54 [iptables PATCH 0/2] Document nfnl_osf utility Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 1/2] utils: nfnl_osf: Fix synopsis in help text Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 2/2] utils: Add a man page for nfnl_osf Phil Sutter
@ 2017-10-04 13:53 ` Pablo Neira Ayuso
2 siblings, 0 replies; 4+ messages in thread
From: Pablo Neira Ayuso @ 2017-10-04 13:53 UTC (permalink / raw)
To: Phil Sutter; +Cc: netfilter-devel
On Wed, Sep 20, 2017 at 06:54:07PM +0200, Phil Sutter wrote:
> This series fixes nfnl_osf help output a bit and introduces a (short)
> man page.
Series applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-04 13:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-20 16:54 [iptables PATCH 0/2] Document nfnl_osf utility Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 1/2] utils: nfnl_osf: Fix synopsis in help text Phil Sutter
2017-09-20 16:54 ` [iptables PATCH 2/2] utils: Add a man page for nfnl_osf Phil Sutter
2017-10-04 13:53 ` [iptables PATCH 0/2] Document nfnl_osf utility Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).