* Manpage updates for iptables
@ 2009-08-20 15:09 Jan Engelhardt
2009-08-20 15:09 ` [PATCH 1/4] length: support semi-infinite length description Jan Engelhardt
` (3 more replies)
0 siblings, 4 replies; 14+ messages in thread
From: Jan Engelhardt @ 2009-08-20 15:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: kaber
The following changes since commit 8e4dacaed17701cb1891b962bb856e0e8cfbb5c8:
Jan Engelhardt (1):
Merge branch 'stable'
are available in the git repository at:
git://dev.medozas.de/iptables master
Jan Engelhardt (2):
length: support semi-infinite length description
manpages: more fixes to minuses, hyphens, dashes
Laurence J. Lane (1):
manpage: fix lintian warnings
Trent W. Buck (1):
ipt_set: fix a typo in the manpage
extensions/libipt_set.man | 2 +-
extensions/libxt_NFLOG.man | 2 +-
extensions/libxt_TOS.man | 2 +-
extensions/libxt_connbytes.man | 2 +-
extensions/libxt_length.c | 18 +++++++++++-------
extensions/libxt_length.man | 13 ++++++++++---
ip6tables-restore.8 | 7 +++----
ip6tables-save.8 | 4 ++--
ip6tables.8.in | 6 +++---
iptables-restore.8 | 7 +++----
iptables-save.8 | 4 ++--
iptables-xml.8 | 10 ++++------
iptables.8.in | 6 +++---
libipq/ipq_create_handle.3 | 4 ++--
libipq/ipq_errstr.3 | 2 +-
libipq/ipq_message_type.3 | 2 +-
libipq/ipq_read.3 | 4 ++--
libipq/ipq_set_mode.3 | 4 ++--
libipq/ipq_set_verdict.3 | 4 ++--
libipq/libipq.3 | 4 ++--
20 files changed, 57 insertions(+), 50 deletions(-)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/4] length: support semi-infinite length description
2009-08-20 15:09 Manpage updates for iptables Jan Engelhardt
@ 2009-08-20 15:09 ` Jan Engelhardt
2009-08-20 15:12 ` Patrick McHardy
2009-08-20 15:09 ` [PATCH 2/4] ipt_set: fix a typo in the manpage Jan Engelhardt
` (2 subsequent siblings)
3 siblings, 1 reply; 14+ messages in thread
From: Jan Engelhardt @ 2009-08-20 15:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: kaber
The code is already there, it just was not documented. Also use
UINT16_MAX instead and pretty-print iptables's -L/-S output.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
extensions/libxt_length.c | 18 +++++++++++-------
extensions/libxt_length.man | 13 ++++++++++---
2 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c
index 0f954cf..adfa116 100644
--- a/extensions/libxt_length.c
+++ b/extensions/libxt_length.c
@@ -12,8 +12,8 @@ static void length_help(void)
{
printf(
"length match options:\n"
-"[!] --length length[:length] Match packet length against value or range\n"
-" of values (inclusive)\n");
+"[!] --length length[:[length]] Match packet length against value, anything\n"
+" above value or a range of values (inclusive)\n");
}
static const struct option length_opts[] = {
@@ -40,14 +40,14 @@ parse_lengths(const char *s, struct xt_length_info *info)
char *cp;
buffer = strdup(s);
- if ((cp = strchr(buffer, ':')) == NULL)
+ if ((cp = strchr(buffer, ':')) == NULL) {
info->min = info->max = parse_length(buffer);
- else {
+ } else {
*cp = '\0';
cp++;
info->min = buffer[0] ? parse_length(buffer) : 0;
- info->max = cp[0] ? parse_length(cp) : 0xFFFF;
+ info->max = cp[0] ? parse_length(cp) : UINT16_MAX;
}
free(buffer);
@@ -97,9 +97,11 @@ length_print(const void *ip, const struct xt_entry_match *match, int numeric)
printf("length %s", info->invert ? "!" : "");
if (info->min == info->max)
- printf("%u ", info->min);
+ printf("== %u ", info->min);
+ else if (info->max == UINT16_MAX)
+ printf(">= %u ", info->min);
else
- printf("%u:%u ", info->min, info->max);
+ printf("%u..%u ", info->min, info->max);
}
static void length_save(const void *ip, const struct xt_entry_match *match)
@@ -109,6 +111,8 @@ static void length_save(const void *ip, const struct xt_entry_match *match)
printf("%s--length ", info->invert ? "! " : "");
if (info->min == info->max)
printf("%u ", info->min);
+ else if (info->max == UINT16_MAX)
+ printf("%u: ", info->min);
else
printf("%u:%u ", info->min, info->max);
}
diff --git a/extensions/libxt_length.man b/extensions/libxt_length.man
index e324e03..cf1e815 100644
--- a/extensions/libxt_length.man
+++ b/extensions/libxt_length.man
@@ -1,5 +1,12 @@
-This module matches the length of the layer-3 payload (e.g. layer-4 packet)
-f a packet against a specific value
+This module matches the length of the layer-3 payload (e.g. layer-4
+header and data) of a packet against a specific value
or range of values.
.TP
-[\fB!\fP] \fB\-\-length\fP \fIlength\fP[\fB:\fP\fIlength\fP]
+[\fB!\fP] \fB\-\-length\fP \fIvalue\fP
+Match against exact value
+.TP
+[\fB!\fP] \fB\-\-length\fP \fImin\fP\fB:\fP
+Match against value or anything above it
+.TP
+[\fB!\fP] \fB\-\-length\fP \fImin\fP\fB:\fP\fImax\fP
+Match exact range (inclusive).
--
1.6.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/4] ipt_set: fix a typo in the manpage
2009-08-20 15:09 Manpage updates for iptables Jan Engelhardt
2009-08-20 15:09 ` [PATCH 1/4] length: support semi-infinite length description Jan Engelhardt
@ 2009-08-20 15:09 ` Jan Engelhardt
2009-08-20 15:13 ` Patrick McHardy
2009-08-20 16:47 ` Phil Oester
2009-08-20 15:09 ` [PATCH 3/4] manpage: fix lintian warnings Jan Engelhardt
2009-08-20 15:09 ` [PATCH 4/4] manpages: more fixes to minuses, hyphens, dashes Jan Engelhardt
3 siblings, 2 replies; 14+ messages in thread
From: Jan Engelhardt @ 2009-08-20 15:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: kaber
From: Trent W. Buck <trentbuck@gmail.com>
References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539101
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
extensions/libipt_set.man | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/extensions/libipt_set.man b/extensions/libipt_set.man
index 6df6b29..455706c 100644
--- a/extensions/libipt_set.man
+++ b/extensions/libipt_set.man
@@ -1,4 +1,4 @@
-This modules macthes IP sets which can be defined by ipset(8).
+This modules matches IP sets which can be defined by ipset(8).
.TP
[\fB!\fP] \fB\-\-match\-set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP]...
where flags are the comma separated list of
--
1.6.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/4] manpage: fix lintian warnings
2009-08-20 15:09 Manpage updates for iptables Jan Engelhardt
2009-08-20 15:09 ` [PATCH 1/4] length: support semi-infinite length description Jan Engelhardt
2009-08-20 15:09 ` [PATCH 2/4] ipt_set: fix a typo in the manpage Jan Engelhardt
@ 2009-08-20 15:09 ` Jan Engelhardt
2009-08-20 15:14 ` Patrick McHardy
2009-08-20 15:09 ` [PATCH 4/4] manpages: more fixes to minuses, hyphens, dashes Jan Engelhardt
3 siblings, 1 reply; 14+ messages in thread
From: Jan Engelhardt @ 2009-08-20 15:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: kaber
From: Laurence J. Lane <ljlane@debian.org>
Description: extraneous slash caused this lintian warning:
W: iptables: manpage-has-errors-from-man usr/share/man/man8/iptables.8.gz
220: cannot use newline as a starting delimiter
W: iptables: manpage-has-errors-from-man usr/share/man/man8/ip6tables.8.gz
1823: warning: `precedence'' not defined
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
extensions/libxt_TOS.man | 2 +-
iptables.8.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/extensions/libxt_TOS.man b/extensions/libxt_TOS.man
index a42a73d..d5cbfcb 100644
--- a/extensions/libxt_TOS.man
+++ b/extensions/libxt_TOS.man
@@ -1,5 +1,5 @@
This module sets the Type of Service field in the IPv4 header (including the
-'precedence' bits) or the Priority field in the IPv6 header. Note that TOS
+"precedence" bits) or the Priority field in the IPv6 header. Note that TOS
shares the same bits as DSCP and ECN. The TOS target is only valid in the
\fBmangle\fR table.
.TP
diff --git a/iptables.8.in b/iptables.8.in
index 14fc23a..cb6e6b0 100644
--- a/iptables.8.in
+++ b/iptables.8.in
@@ -217,7 +217,7 @@ targets.
Rename the user specified chain to the user supplied name. This is
cosmetic, and has no effect on the structure of the table.
.TP
-\fB\-\h\fP
+\fB\-h\fP
Help.
Give a (currently very brief) description of the command syntax.
.SS PARAMETERS
--
1.6.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/4] manpages: more fixes to minuses, hyphens, dashes
2009-08-20 15:09 Manpage updates for iptables Jan Engelhardt
` (2 preceding siblings ...)
2009-08-20 15:09 ` [PATCH 3/4] manpage: fix lintian warnings Jan Engelhardt
@ 2009-08-20 15:09 ` Jan Engelhardt
2009-08-20 15:15 ` Patrick McHardy
3 siblings, 1 reply; 14+ messages in thread
From: Jan Engelhardt @ 2009-08-20 15:09 UTC (permalink / raw)
To: netfilter-devel; +Cc: kaber
Debian still carries patches patches to the iptables nroff code touching
ASCII minuses, so I thought, what's it this time.
Eventually, this patch tries to straighten things once more, per
http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Hyphens and
http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Dashes .
Titles will get the em dash; all typed commands or parameters with a
hyphen get a minus (so that man(1) hyperlinking and copy-pasting does
work), but other mentions get the hyphen.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
extensions/libxt_NFLOG.man | 2 +-
extensions/libxt_connbytes.man | 2 +-
ip6tables-restore.8 | 7 +++----
ip6tables-save.8 | 4 ++--
ip6tables.8.in | 6 +++---
iptables-restore.8 | 7 +++----
iptables-save.8 | 4 ++--
iptables-xml.8 | 10 ++++------
iptables.8.in | 4 ++--
libipq/ipq_create_handle.3 | 4 ++--
libipq/ipq_errstr.3 | 2 +-
libipq/ipq_message_type.3 | 2 +-
libipq/ipq_read.3 | 4 ++--
libipq/ipq_set_mode.3 | 4 ++--
libipq/ipq_set_verdict.3 | 4 ++--
libipq/libipq.3 | 4 ++--
16 files changed, 33 insertions(+), 37 deletions(-)
diff --git a/extensions/libxt_NFLOG.man b/extensions/libxt_NFLOG.man
index 861501b..66f0b97 100644
--- a/extensions/libxt_NFLOG.man
+++ b/extensions/libxt_NFLOG.man
@@ -9,7 +9,7 @@ may subscribe to the group to receive the packets. Like LOG, this is a
non-terminating target, i.e. rule traversal continues at the next rule.
.TP
\fB\-\-nflog\-group\fP \fInlgroup\fP
-The netlink group (1 - 2^32\-1) to which packets are (only applicable for
+The netlink group (1 \- 2^32\-1) to which packets are (only applicable for
nfnetlink_log). The default value is 0.
.TP
\fB\-\-nflog\-prefix\fP \fIprefix\fP
diff --git a/extensions/libxt_connbytes.man b/extensions/libxt_connbytes.man
index e475cae..0504a55 100644
--- a/extensions/libxt_connbytes.man
+++ b/extensions/libxt_connbytes.man
@@ -8,7 +8,7 @@ The primary use is to detect long-lived downloads and mark them to be
scheduled using a lower priority band in traffic control.
.PP
The transferred bytes per connection can also be viewed through
-`conntrack -L` and accessed via ctnetlink.
+`conntrack \-L` and accessed via ctnetlink.
.PP
NOTE that for connections which have no accounting information, the match will
always return false. The "net.netfilter.nf_conntrack_acct" sysctl flag controls
diff --git a/ip6tables-restore.8 b/ip6tables-restore.8
index 43c1268..0264807 100644
--- a/ip6tables-restore.8
+++ b/ip6tables-restore.8
@@ -19,10 +19,9 @@
.\"
.\"
.SH NAME
-ip6tables-restore \- Restore IPv6 Tables
+ip6tables-restore \(em Restore IPv6 Tables
.SH SYNOPSIS
-.BR "ip6tables-restore " "[-c] [-n]"
-.br
+\fBip6tables\-restore\fP [\fB\-c\fP] [\fB\-n\fP]
.SH DESCRIPTION
.PP
.B ip6tables-restore
@@ -44,7 +43,7 @@ Harald Welte <laforge@gnumonks.org>
.br
Andras Kis-Szabo <kisza@sch.bme.hu>
.SH SEE ALSO
-.BR ip6tables-save "(8), " ip6tables "(8) "
+\fBip6tables\-save\fP(8), \fBip6tables\fP(8)
.PP
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
which details NAT, and the netfilter-hacking-HOWTO which details the
diff --git a/ip6tables-save.8 b/ip6tables-save.8
index c760b32..457be82 100644
--- a/ip6tables-save.8
+++ b/ip6tables-save.8
@@ -19,7 +19,7 @@
.\"
.\"
.SH NAME
-ip6tables-save - dump iptables rules to stdout
+ip6tables-save \(em dump iptables rules to stdout
.SH SYNOPSIS
\fBip6tables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP]
[\fB\-t\fP \fItable\fP
@@ -46,7 +46,7 @@ Harald Welte <laforge@gnumonks.org>
.br
Andras Kis-Szabo <kisza@sch.bme.hu>
.SH SEE ALSO
-.BR ip6tables-restore "(8), " ip6tables "(8) "
+\fBip6tables\-restore\fP(8), \fBip6tables\fP(8)
.PP
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
which details NAT, and the netfilter-hacking-HOWTO which details the
diff --git a/ip6tables.8.in b/ip6tables.8.in
index 8037dc7..7d9a617 100644
--- a/ip6tables.8.in
+++ b/ip6tables.8.in
@@ -1,4 +1,4 @@
-.TH IP6TABLES 8 "" "@PACKAGE_AND_VERSION@" "@PACKAGE_AND_VERSION@"
+.TH IP6TABLES 8 "" "iptables 1.4.4" "iptables 1.4.4"
.\"
.\" Man page written by Andras Kis-Szabo <kisza@sch.bme.hu>
.\" It is based on iptables man page.
@@ -25,7 +25,7 @@
.\"
.\"
.SH NAME
-ip6tables - IPv6 packet filter administration
+ip6tables \(em IPv6 packet filter administration
.SH SYNOPSIS
\fBip6tables\fP [\fB\-t\fP \fItable\fP] {\fB\-A\fP|\fB\-D\fP} \fIchain
rule-specification\fP [\fIoptions...\fP]
@@ -175,7 +175,7 @@ arguments given. The exact rules are suppressed until you use
.TP
\fB\-S\fP, \fB\-\-list\-rules\fP [\fIchain\fP]
Print all rules in the selected chain. If no chain is selected, all
-chains are printed like ip6tables\-save. Like every other ip6tables command,
+chains are printed like ip6tables-save. Like every other ip6tables command,
it applies to the specified table (filter is the default).
.TP
\fB\-F\fP, \fB\-\-flush\fP [\fIchain\fP]
diff --git a/iptables-restore.8 b/iptables-restore.8
index e80d943..a52bceb 100644
--- a/iptables-restore.8
+++ b/iptables-restore.8
@@ -19,10 +19,9 @@
.\"
.\"
.SH NAME
-iptables-restore \- Restore IP Tables
+iptables-restore \(em Restore IP Tables
.SH SYNOPSIS
-.BR "iptables-restore " "[-c] [-n]"
-.br
+\fBiptables\-restore\fP [\fB\-c\fP] [\fB\-n\fP]
.SH DESCRIPTION
.PP
.B iptables-restore
@@ -41,7 +40,7 @@ None known as of iptables-1.2.1 release
.SH AUTHOR
Harald Welte <laforge@gnumonks.org>
.SH SEE ALSO
-.BR iptables-save "(8), " iptables "(8) "
+\fBiptables\-save\fP(8), \fBiptables\fP(8)
.PP
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
which details NAT, and the netfilter-hacking-HOWTO which details the
diff --git a/iptables-save.8 b/iptables-save.8
index c1729fe..c2e0a94 100644
--- a/iptables-save.8
+++ b/iptables-save.8
@@ -19,7 +19,7 @@
.\"
.\"
.SH NAME
-iptables-save - dump iptables rules to stdout
+iptables-save \(em dump iptables rules to stdout
.SH SYNOPSIS
\fBiptables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP]
[\fB\-t\fP \fItable\fP]
@@ -44,7 +44,7 @@ None known as of iptables-1.2.1 release
.SH AUTHOR
Harald Welte <laforge@gnumonks.org>
.SH SEE ALSO
-.BR iptables-restore "(8), " iptables "(8) "
+\fBiptables\-restore\fP(8), \fBiptables\fP(8)
.PP
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
which details NAT, and the netfilter-hacking-HOWTO which details the
diff --git a/iptables-xml.8 b/iptables-xml.8
index 705dc5e..048c2cb 100644
--- a/iptables-xml.8
+++ b/iptables-xml.8
@@ -19,10 +19,9 @@
.\"
.\"
.SH NAME
-iptables-xml \- Convert iptables-save format to XML
+iptables-xml \(em Convert iptables-save format to XML
.SH SYNOPSIS
-.BR "iptables-xml " "[-c] [-v]"
-.br
+\fBiptables\-xml\fP [\fB\-c\fP] [\fB\-v\fP]
.SH DESCRIPTION
.PP
.B iptables-xml
@@ -42,7 +41,7 @@ Output xml comments containing the iptables line from which the XML is derived
.PP
iptables-xml does a mechanistic conversion to a very expressive xml
-format; the only semantic considerations are for -g and -j targets in
+format; the only semantic considerations are for \-g and \-j targets in
order to discriminate between <call> <goto> and <nane-of-target> as it
helps xml processing scripts if they can tell the difference between a
target like SNAT and another chain.
@@ -85,5 +84,4 @@ None known as of iptables-1.3.7 release
.SH AUTHOR
Sam Liddicott <azez@ufomechanic.net>
.SH SEE ALSO
-.BR iptables-save "(8), " iptables-restore "(8), " iptables "(8) "
-.PP
+\fBiptables\-save\fP(8), \fBiptables\-restore\fP(8), \fBiptables\fP(8)
diff --git a/iptables.8.in b/iptables.8.in
index cb6e6b0..6125e65 100644
--- a/iptables.8.in
+++ b/iptables.8.in
@@ -23,7 +23,7 @@
.\"
.\"
.SH NAME
-iptables - administration tool for IPv4 packet filtering and NAT
+iptables \(em administration tool for IPv4 packet filtering and NAT
.SH SYNOPSIS
\fBiptables\fP [\fB\-t\fP \fItable\fP] {\fB\-A\fP|\fB\-D\fP} \fIchain\fP \fIrule-specification\fP
.PP
@@ -182,7 +182,7 @@ arguments given. The exact rules are suppressed until you use
.TP
\fB\-S\fP, \fB\-\-list\-rules\fP [\fIchain\fP]
Print all rules in the selected chain. If no chain is selected, all
-chains are printed like iptables\-save. Like every other iptables command,
+chains are printed like iptables-save. Like every other iptables command,
it applies to the specified table (filter is the default).
.TP
\fB\-F\fP, \fB\-\-flush\fP [\fIchain\fP]
diff --git a/libipq/ipq_create_handle.3 b/libipq/ipq_create_handle.3
index 7840277..6c0c796 100644
--- a/libipq/ipq_create_handle.3
+++ b/libipq/ipq_create_handle.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-ipq_create_handle, ipq_destroy_handle - create and destroy libipq handles.
+ipq_create_handle, ipq_destroy_handle \(em create and destroy libipq handles.
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
@@ -65,7 +65,7 @@ On success,
.B ipq_destroy_handle
returns zero.
.br
-On failure, -1 is returned.
+On failure, \-1 is returned.
.SH ERRORS
On failure, a descriptive error message will be available
via the
diff --git a/libipq/ipq_errstr.3 b/libipq/ipq_errstr.3
index 9661469..bcb3ac4 100644
--- a/libipq/ipq_errstr.3
+++ b/libipq/ipq_errstr.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-ipq_errstr, ipq_perror - libipq error handling routines
+ipq_errstr, ipq_perror \(em libipq error handling routines
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
diff --git a/libipq/ipq_message_type.3 b/libipq/ipq_message_type.3
index 0594518..64b5220 100644
--- a/libipq/ipq_message_type.3
+++ b/libipq/ipq_message_type.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-ipq_message_type, ipq_get_packet, ipq_getmsgerr - query queue messages
+ipq_message_type, ipq_get_packet, ipq_getmsgerr \(em query queue messages
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
diff --git a/libipq/ipq_read.3 b/libipq/ipq_read.3
index 5d96737..171c916 100644
--- a/libipq/ipq_read.3
+++ b/libipq/ipq_read.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-ipq_read - read queue messages from ip_queue and read into supplied buffer
+ipq_read \(em read queue messages from ip_queue and read into supplied buffer
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
@@ -64,7 +64,7 @@ should not be accessed directly. Use the
.BR ipq_get_msgerr
functions to access the queue message in the buffer.
.SH RETURN VALUE
-On failure, -1 is returned.
+On failure, \-1 is returned.
.br
On success, a non-zero positive value is returned when no timeout
value is specified.
diff --git a/libipq/ipq_set_mode.3 b/libipq/ipq_set_mode.3
index 241581e..672ee4e 100644
--- a/libipq/ipq_set_mode.3
+++ b/libipq/ipq_set_mode.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-ipq_set_mode - set the ip_queue queuing mode
+ipq_set_mode \(em set the ip_queue queuing mode
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
@@ -68,7 +68,7 @@ Note that as the underlying Netlink messaging transport is connectionless,
the ip_queue module does not know that a userspace application is ready to
communicate until it receives a message such as this.
.SH RETURN VALUE
-On failure, -1 is returned.
+On failure, \-1 is returned.
.br
On success, a non-zero positive value is returned.
.SH ERRORS
diff --git a/libipq/ipq_set_verdict.3 b/libipq/ipq_set_verdict.3
index 002e9fb..e9d3d3f 100644
--- a/libipq/ipq_set_verdict.3
+++ b/libipq/ipq_set_verdict.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-ipq_set_verdict - issue verdict and optionally modified packet to kernel
+ipq_set_verdict \(em issue verdict and optionally modified packet to kernel
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
@@ -80,7 +80,7 @@ and NULL for
The application is responsible for recalculating any packet checksums
when modifying packets.
.SH RETURN VALUE
-On failure, -1 is returned.
+On failure, \-1 is returned.
.br
On success, a non-zero positive value is returned.
.SH ERRORS
diff --git a/libipq/libipq.3 b/libipq/libipq.3
index 9dafa4a..0196248 100644
--- a/libipq/libipq.3
+++ b/libipq/libipq.3
@@ -20,7 +20,7 @@
.\"
.\"
.SH NAME
-libipq \- iptables userspace packet queuing library.
+libipq \(em iptables userspace packet queuing library.
.SH SYNOPSIS
.B #include <linux/netfilter.h>
.br
@@ -51,7 +51,7 @@ running the following commands:
.br
# modprobe ip_queue
.br
- # iptables -A OUTPUT -p icmp -j QUEUE
+ # iptables \-A OUTPUT \-p icmp \-j QUEUE
.PP
will cause any locally generated ICMP packets (e.g. ping output) to
be sent to the ip_queue module, which will then attempt to deliver the
--
1.6.4
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 1/4] length: support semi-infinite length description
2009-08-20 15:09 ` [PATCH 1/4] length: support semi-infinite length description Jan Engelhardt
@ 2009-08-20 15:12 ` Patrick McHardy
2009-08-20 15:16 ` Patrick McHardy
0 siblings, 1 reply; 14+ messages in thread
From: Patrick McHardy @ 2009-08-20 15:12 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
Jan Engelhardt wrote:
> The code is already there, it just was not documented. Also use
> UINT16_MAX instead and pretty-print iptables's -L/-S output.
>
> @@ -97,9 +97,11 @@ length_print(const void *ip, const struct xt_entry_match *match, int numeric)
>
> printf("length %s", info->invert ? "!" : "");
> if (info->min == info->max)
> - printf("%u ", info->min);
> + printf("== %u ", info->min);
> + else if (info->max == UINT16_MAX)
> + printf(">= %u ", info->min);
> else
> - printf("%u:%u ", info->min, info->max);
> + printf("%u..%u ", info->min, info->max);
I prefer to keep using ":", this is what we use everywhere else for
ranges.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] ipt_set: fix a typo in the manpage
2009-08-20 15:09 ` [PATCH 2/4] ipt_set: fix a typo in the manpage Jan Engelhardt
@ 2009-08-20 15:13 ` Patrick McHardy
2009-08-20 15:21 ` Jan Engelhardt
2009-08-20 16:47 ` Phil Oester
1 sibling, 1 reply; 14+ messages in thread
From: Patrick McHardy @ 2009-08-20 15:13 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
Jan Engelhardt wrote:
> From: Trent W. Buck <trentbuck@gmail.com>
>
> References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539101
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Applied, thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/4] manpage: fix lintian warnings
2009-08-20 15:09 ` [PATCH 3/4] manpage: fix lintian warnings Jan Engelhardt
@ 2009-08-20 15:14 ` Patrick McHardy
0 siblings, 0 replies; 14+ messages in thread
From: Patrick McHardy @ 2009-08-20 15:14 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
Jan Engelhardt wrote:
> From: Laurence J. Lane <ljlane@debian.org>
>
> Description: extraneous slash caused this lintian warning:
> W: iptables: manpage-has-errors-from-man usr/share/man/man8/iptables.8.gz
> 220: cannot use newline as a starting delimiter
> W: iptables: manpage-has-errors-from-man usr/share/man/man8/ip6tables.8.gz
> 1823: warning: `precedence'' not defined
>
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Applied, thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 4/4] manpages: more fixes to minuses, hyphens, dashes
2009-08-20 15:09 ` [PATCH 4/4] manpages: more fixes to minuses, hyphens, dashes Jan Engelhardt
@ 2009-08-20 15:15 ` Patrick McHardy
0 siblings, 0 replies; 14+ messages in thread
From: Patrick McHardy @ 2009-08-20 15:15 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
Jan Engelhardt wrote:
> Debian still carries patches patches to the iptables nroff code touching
> ASCII minuses, so I thought, what's it this time.
>
> Eventually, this patch tries to straighten things once more, per
> http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Hyphens and
> http://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Dashes .
>
> Titles will get the em dash; all typed commands or parameters with a
> hyphen get a minus (so that man(1) hyperlinking and copy-pasting does
> work), but other mentions get the hyphen.
>
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Also applied, thanks a lot Jan.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/4] length: support semi-infinite length description
2009-08-20 15:12 ` Patrick McHardy
@ 2009-08-20 15:16 ` Patrick McHardy
0 siblings, 0 replies; 14+ messages in thread
From: Patrick McHardy @ 2009-08-20 15:16 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
Patrick McHardy wrote:
> Jan Engelhardt wrote:
>> The code is already there, it just was not documented. Also use
>> UINT16_MAX instead and pretty-print iptables's -L/-S output.
>>
>> @@ -97,9 +97,11 @@ length_print(const void *ip, const struct xt_entry_match *match, int numeric)
>>
>> printf("length %s", info->invert ? "!" : "");
>> if (info->min == info->max)
>> - printf("%u ", info->min);
>> + printf("== %u ", info->min);
One more note - for the exact match I think "length X" is also
fine without ==.
>> + else if (info->max == UINT16_MAX)
>> + printf(">= %u ", info->min);
>> else
>> - printf("%u:%u ", info->min, info->max);
>> + printf("%u..%u ", info->min, info->max);
>
> I prefer to keep using ":", this is what we use everywhere else for
> ranges.
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] ipt_set: fix a typo in the manpage
2009-08-20 15:13 ` Patrick McHardy
@ 2009-08-20 15:21 ` Jan Engelhardt
2009-08-20 15:31 ` Patrick McHardy
0 siblings, 1 reply; 14+ messages in thread
From: Jan Engelhardt @ 2009-08-20 15:21 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netfilter-devel
On Thursday 2009-08-20 17:13, Patrick McHardy wrote:
>Jan Engelhardt wrote:
>> From: Trent W. Buck <trentbuck@gmail.com>
>>
>> References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539101
>> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
>
>Applied, thanks.
>
So, is there any decision yet on the kernel patches I've sent
a-week-or-so ago?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] ipt_set: fix a typo in the manpage
2009-08-20 15:21 ` Jan Engelhardt
@ 2009-08-20 15:31 ` Patrick McHardy
0 siblings, 0 replies; 14+ messages in thread
From: Patrick McHardy @ 2009-08-20 15:31 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
Jan Engelhardt wrote:
> On Thursday 2009-08-20 17:13, Patrick McHardy wrote:
>
>> Jan Engelhardt wrote:
>>> From: Trent W. Buck <trentbuck@gmail.com>
>>>
>>> References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539101
>>> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
>> Applied, thanks.
>>
> So, is there any decision yet on the kernel patches I've sent
> a-week-or-so ago?
I'll get to those, probably tommorrow.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] ipt_set: fix a typo in the manpage
2009-08-20 15:09 ` [PATCH 2/4] ipt_set: fix a typo in the manpage Jan Engelhardt
2009-08-20 15:13 ` Patrick McHardy
@ 2009-08-20 16:47 ` Phil Oester
2009-08-24 12:19 ` Patrick McHardy
1 sibling, 1 reply; 14+ messages in thread
From: Phil Oester @ 2009-08-20 16:47 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel, kaber
On Thu, Aug 20, 2009 at 05:09:36PM +0200, Jan Engelhardt wrote:
> From: Trent W. Buck <trentbuck@gmail.com>
>
> References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539101
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
> ---
> extensions/libipt_set.man | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/extensions/libipt_set.man b/extensions/libipt_set.man
> index 6df6b29..455706c 100644
> --- a/extensions/libipt_set.man
> +++ b/extensions/libipt_set.man
> @@ -1,4 +1,4 @@
> -This modules macthes IP sets which can be defined by ipset(8).
> +This modules matches IP sets which can be defined by ipset(8).
While in there, modules should be singular.
Phil
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 2/4] ipt_set: fix a typo in the manpage
2009-08-20 16:47 ` Phil Oester
@ 2009-08-24 12:19 ` Patrick McHardy
0 siblings, 0 replies; 14+ messages in thread
From: Patrick McHardy @ 2009-08-24 12:19 UTC (permalink / raw)
To: Phil Oester; +Cc: Jan Engelhardt, netfilter-devel
Phil Oester wrote:
> On Thu, Aug 20, 2009 at 05:09:36PM +0200, Jan Engelhardt wrote:
>> From: Trent W. Buck <trentbuck@gmail.com>
>>
>> References: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539101
>> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
>> ---
>> extensions/libipt_set.man | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/extensions/libipt_set.man b/extensions/libipt_set.man
>> index 6df6b29..455706c 100644
>> --- a/extensions/libipt_set.man
>> +++ b/extensions/libipt_set.man
>> @@ -1,4 +1,4 @@
>> -This modules macthes IP sets which can be defined by ipset(8).
>> +This modules matches IP sets which can be defined by ipset(8).
>
> While in there, modules should be singular.
Fixed, thanks.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-08-24 12:19 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 15:09 Manpage updates for iptables Jan Engelhardt
2009-08-20 15:09 ` [PATCH 1/4] length: support semi-infinite length description Jan Engelhardt
2009-08-20 15:12 ` Patrick McHardy
2009-08-20 15:16 ` Patrick McHardy
2009-08-20 15:09 ` [PATCH 2/4] ipt_set: fix a typo in the manpage Jan Engelhardt
2009-08-20 15:13 ` Patrick McHardy
2009-08-20 15:21 ` Jan Engelhardt
2009-08-20 15:31 ` Patrick McHardy
2009-08-20 16:47 ` Phil Oester
2009-08-24 12:19 ` Patrick McHardy
2009-08-20 15:09 ` [PATCH 3/4] manpage: fix lintian warnings Jan Engelhardt
2009-08-20 15:14 ` Patrick McHardy
2009-08-20 15:09 ` [PATCH 4/4] manpages: more fixes to minuses, hyphens, dashes Jan Engelhardt
2009-08-20 15:15 ` Patrick McHardy
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).