]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
manpage updates
authorJan Engelhardt <jengelh@medozas.de>
Sun, 8 Jun 2008 17:11:51 +0000 (19:11 +0200)
committerPatrick McHardy <kaber@trash.net>
Sun, 8 Jun 2008 17:11:51 +0000 (19:11 +0200)
A number of options support negation, but the manpage did not reflect
this ("[!]" was absent). Also fix a few [] (optional arguments) to {}
(required arguments) in the option-BNF.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
18 files changed:
extensions/libipt_addrtype.man
extensions/libipt_ecn.man
extensions/libipt_set.man
extensions/libxt_connbytes.man
extensions/libxt_dccp.man
extensions/libxt_dscp.man
extensions/libxt_hashlimit.man
extensions/libxt_length.man
extensions/libxt_limit.man
extensions/libxt_multiport.man
extensions/libxt_pkttype.c
extensions/libxt_pkttype.man
extensions/libxt_policy.man
extensions/libxt_state.man
extensions/libxt_string.c
extensions/libxt_string.man
extensions/libxt_time.c
extensions/libxt_time.man

index af5e64844a6901b60038031da6f17e8345ee9630..275d9994cced4a84bf7f0d1943e67233ecf60157 100644 (file)
@@ -40,10 +40,10 @@ FIXME
 .TP
 .BI "XRESOLVE"
 .TP
-.BI "--src-type " "type"
+[\fB!\fP] \fB--src-type\fP \fItype\fP
 Matches if the source address is of given type
 .TP
-.BI "--dst-type " "type"
+[\fB!\fP] \fB--dst-type\fP \fItype\fP
 Matches if the destination address is of given type
 .TP
 .BI "--limit-iface-in"
index 8ecfef592af3cdbb88894792c49804ee6c1905ad..d289d08024542fdf9fa3b91d2e69fe5e40f2d587 100644 (file)
@@ -1,11 +1,11 @@
 This allows you to match the ECN bits of the IPv4 and TCP header.  ECN is the Explicit Congestion Notification mechanism as specified in RFC3168
 .TP
-.BI "--ecn-tcp-cwr"
+[\fB!\fP] \fB--ecn-tcp-cwr\fP
 This matches if the TCP ECN CWR (Congestion Window Received) bit is set.
 .TP
-.BI "--ecn-tcp-ece"
+[\fB!\fP] \fB--ecn-tcp-ece\fP
 This matches if the TCP ECN ECE (ECN Echo) bit is set.
 .TP
-.BI "--ecn-ip-ect " "num"
+[\fB!\fP] \fB--ecn-ip-ect\fP \fInum\fP
 This matches a particular IPv4 ECT (ECN-Capable Transport). You have to specify
 a number between `0' and `3'.
index a92a9500aa156d0982265dd8922c57dd412bfcc5..c8ff601a8c7f4fee0fd3f723258947c1ffd653a8 100644 (file)
@@ -1,6 +1,6 @@
 This modules macthes IP sets which can be defined by ipset(8).
 .TP
-\fB--set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP...]
+[\fB!\fP] \fB--set\fP \fIsetname\fP \fIflag\fP[\fB,\fP\fIflag\fP]...
 where flags are
 .BR "src"
 and/or
index 124ff6f4dedbe5373196514934b505080971be80..f547968971baeb6521b0341948d697a9fab1a2e1 100644 (file)
@@ -16,10 +16,10 @@ size is more than FROM and less than TO bytes/packets. if TO is
 omitted only FROM check is done. "!" is used to match packets not
 falling in the range.
 .TP
-\fB--connbytes-dir\fR [\fBoriginal\fR|\fBreply\fR|\fBboth\fR]
+\fB--connbytes-dir\fR {\fBoriginal\fR|\fBreply\fR|\fBboth\fR}
 which packets to consider
 .TP
-\fB--connbytes-mode\fR [\fBpackets\fR|\fBbytes\fR|\fBavgpkt\fR]
+\fB--connbytes-mode\fR {\fBpackets\fR|\fBbytes\fR|\fBavgpkt\fR}
 whether to check the amount of packets, number of bytes transferred or
 the average size (in bytes) of all packets received so far. Note that
 when "both" is used together with "avgpkt", and data is going (mainly)
index d962ef05e72598551dcb56f3a9a7b8cc70b866d2..0320af49858322d0295647f9721c1381d5ef9924 100644 (file)
@@ -3,10 +3,10 @@
 .TP
 [\fB!\fP] \fB--destination-port\fP,\fB--dport\fP \fIport\fP[\fB:\fP\fIport\fP]
 .TP
-\fB--dccp-types\fR [\fB!\fR] \fImask\fP
+[\fB!\fP] \fB--dccp-types\fR \fImask\fP
 Match when the DCCP packet type is one of 'mask'. 'mask' is a comma-separated
 list of packet types.  Packet types are: 
 .BR "REQUEST RESPONSE DATA ACK DATAACK CLOSEREQ CLOSE RESET SYNC SYNCACK INVALID" .
 .TP
-\fB--dccp-option\fR [\fB!\fR\] \fInumber\fP
+[\fB!\fP] \fB--dccp-option\fR \fInumber\fP
 Match if DCP option set.
index 4a422785dfba80ac73b921a1cef903686bac146d..e2357db42b5a63b50393c033676a20158199b7a3 100644 (file)
@@ -1,10 +1,10 @@
 This module matches the 6 bit DSCP field within the TOS field in the
 IP header.  DSCP has superseded TOS within the IETF.
 .TP
-.BI "--dscp " "value"
+[\fB!\fP] \fB--dscp\fP \fIvalue\fP
 Match against a numeric (decimal or hex) value [0-63].
 .TP
-\fB--dscp-class\fP \fIclass\fP
+[\fB!\fP] \fB--dscp-class\fP \fIclass\fP
 Match the DiffServ class. This value may be any of the
 BE, EF, AFxx or CSx classes.  It will then be converted
 into its according numeric value.
index e449406394595a5c445f2c8413a352846249521e..84642ca4efd102fd14aa71c01a816cf8b493ad64 100644 (file)
@@ -28,7 +28,7 @@ Maximum initial number of packets to match: this number gets recharged by one
 every time the limit specified above is not reached, up to this number; the
 default is 5.
 .TP
-\fB--hashlimit-mode\fR [\fBsrcip\fR|\fBsrcport\fR|\fBdstip\fR|\fBdstport\fR[\fB,\fR...]]
+\fB--hashlimit-mode\fR {\fBsrcip\fR|\fBsrcport\fR|\fBdstip\fR|\fBdstport\fR}\fB,\fP...
 A comma-separated list of objects to take into consideration. If no
 --hashlimit-mode option is given, hashlimit acts like limit, but at the
 expensive of doing the hash housekeeping.
index 5a8198b32d19cbddb86269aca8398b186d8cd509..27236ae22259e088970a86d69fe6d14c19681643 100644 (file)
@@ -2,4 +2,4 @@ This module matches the length of the layer-3 payload (e.g. layer-4 packet)
 f a packet against a specific value
 or range of values.
 .TP
-.BR "--length " "[!] \fIlength\fP[:\fIlength\fP]"
+[\fB!\fP] \fB--length\fP \fIlength\fP[\fB:\fP\fIlength\fP]
index 84b63d4e1532d7c4ddea694d9871e717b06527b8..0419c50a2592bd7ab8387c7622cd9d92dbd2c7c6 100644 (file)
@@ -4,7 +4,7 @@ A rule using this extension will match until this limit is reached
 .B LOG
 target to give limited logging, for example.
 .TP
-.BI "--limit " "rate"
+[\fB!\fP] \fB--limit\fP \fIrate\fP[\fB/second\fP|\fB/minute\fP|\fB/hour\fP|\fB/day\fP]
 Maximum average matching rate: specified as a number, with an optional
 `/second', `/minute', `/hour', or `/day' suffix; the default is
 3/hour.
index cbd87e7f718c4294a4d7e5189f107436e7fc9294..b8e5e49b37cab35dfe1e174b2f5d8c4534167dc1 100644 (file)
@@ -5,16 +5,19 @@ ports.  It can only be used in conjunction with
 or
 .BR "-p udp" .
 .TP
-[\fB!\fP] \fB--source-ports\fP,\fB--sport\fP \fIport\fP[\fB,\fP\fIport\fP[\fB,\fP\fIport\fP\fB:\fP\fIport\fP...]]
+[\fB!\fP] \fB--source-ports\fP,\fB--sport\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]...
 Match if the source port is one of the given ports.  The flag
 .B --sports
-is a convenient alias for this option.
+is a convenient alias for this option. Multiple ports or port ranges are
+separated using a comma, and a port range is specified using a colon.
+\fB53,1024:65535\fP would therefore match ports 53 and all from 1024 through
+65535.
 .TP
-[\fB!\fP] \fB--destination-ports\fP,\fB--dport\fP \fIport\fP[\fB,\fP\fIport\fP[\fB,\fP\fIport\fP\fB:\fP\fIport\fP...]]
+[\fB!\fP] \fB--destination-ports\fP,\fB--dport\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]...
 Match if the destination port is one of the given ports.  The flag
 .B --dports
 is a convenient alias for this option.
 .TP
-[\fB!\fP] \fB--ports\fP \fIport\fP[\fB,\fP\fIport\fP[\fB,\fP\fIport\fP\fB:\fP\fIport\fP...]]
+[\fB!\fP] \fB--ports\fP \fIport\fP[\fB,\fP\fIport\fP|\fB,\fP\fIport\fP\fB:\fP\fIport\fP]...
 Match if either the source or destination ports are equal to one of
 the given ports.
index 69c6da8e1de33c54227b50a7f9bbc41e2136f63b..255410104323725691133aeed097db605db2b5ac 100644 (file)
@@ -59,7 +59,7 @@ static void pkttype_help(void)
 {
        printf(
 "pkttype match options:\n"
-"  --pkt-type [!] packettype\tmatch packet type\n");
+"[!] --pkt-type packettype    match packet type\n");
        print_types();
 }
 
index 127d80aabe2a12553bb6102b5ad8b678e05529b1..ecc6061835affb5c79726634590e2afed3d45e5f 100644 (file)
@@ -1,3 +1,3 @@
 This module matches the link-layer packet type.
 .TP
-\fB--pkt-type\fP {\fIunicast\fP|\fIbroadcast\fP|\fImulticast\fP}
+[\fB!\fP] \fB--pkt-type\fP {\fBunicast\fP|\fBbroadcast\fP|\fBmulticast\fP}
index 0c162736222c399fe1d3a186d4773114e563cdbd..7b7cb2d08902f554fea7d0b3c0288cb25a6da450 100644 (file)
@@ -19,27 +19,27 @@ Matches if the packet is subject to IPsec processing.
 Selects whether to match the exact policy or match if any rule of
 the policy matches the given policy.
 .TP
-.BI "--reqid " "id"
+[\fB!\fP] \fB--reqid\fP \fIid\fP
 Matches the reqid of the policy rule. The reqid can be specified with
 .B setkey(8)
 using
 .B unique:id
 as level.
 .TP
-.BI "--spi " "spi"
+[\fB!\fP] \fB--spi\fP \fIspi\fP
 Matches the SPI of the SA.
 .TP
-\fB--proto\fP {\fBah\fP|\fBesp\fP|\fBipcomp\fP}
+[\fB!\fP] \fB--proto\fP {\fBah\fP|\fBesp\fP|\fBipcomp\fP}
 Matches the encapsulation protocol.
 .TP
-\fB--mode\fP {\fBtunnel\fP|\fBtransport\fP}
+[\fB!\fP] \fB--mode\fP {\fBtunnel\fP|\fBtransport\fP}
 Matches the encapsulation mode.
 .TP
-\fB--tunnel-src\fP \fIaddr\fP[\fB/\fP\fImask\fP]
+[\fB!\fP] \fB--tunnel-src\fP \fIaddr\fP[\fB/\fP\fImask\fP]
 Matches the source end-point address of a tunnel mode SA.
 Only valid with \fB--mode tunnel\fP.
 .TP
-\fB--tunnel-dst\fP \fIaddr\fP[\fB/\fP\fImask\fP]
+[\fB!\fP] \fB--tunnel-dst\fP \fIaddr\fP[\fB/\fP\fImask\fP]
 Matches the destination end-point address of a tunnel mode SA.
 Only valid with \fB--mode tunnel\fP.
 .TP
index 71078680e27ea867c4d74f82eb3b011a0a379b8e..8e943c33e35e127af7b0dc2b98972829fda84955 100644 (file)
@@ -1,7 +1,7 @@
 This module, when combined with connection tracking, allows access to
 the connection tracking state for this packet.
 .TP
-.BI "--state " "state"
+[\fB!\fP] \fB--state\fP \fIstate\fP
 Where state is a comma separated list of the connection states to
 match.  Possible states are
 .B INVALID
index 82deb2a4bb93a3953ddb31ab22779023c417f073..5eec44baa0e6232fb1f9e112d724521aa40808c2 100644 (file)
@@ -38,8 +38,8 @@ static void string_help(void)
 "--from                       Offset to start searching from\n"
 "--to                         Offset to stop searching\n"
 "--algo                              Algorithm\n"
-"--string [!] string          Match a string in a packet\n"
-"--hex-string [!] string      Match a hex string in a packet\n");
+"[!] --string string          Match a string in a packet\n"
+"[!] --hex-string string      Match a hex string in a packet\n");
 }
 
 static const struct option string_opts[] = {
index 9e3b25c6d3222b62212115bc35d12f40eca2bb9f..01e15c2127e48fc76d54233bb65127c7d7094380 100644 (file)
@@ -9,7 +9,8 @@ Set the offset from which it starts looking for any matching. If not passed, def
 .BI "--to " "offset"
 Set the offset from which it starts looking for any matching. If not passed, default is the packet size.
 .TP
-.BI "--string " "pattern"
+[\fB!\fP] \fB--string\fP \fIpattern\fP
 Matches the given pattern.
-.BI "--hex-string " "pattern"
+.TP
+[\fB!\fP] \fB--hex-string\fP \fIpattern\fP
 Matches the given pattern in hex notation.
index 7072d71e6fe562cfa3581862777d6c1c6a5414a9..97bb0d31e6863ae5593fa59ee36ed2c7ee02b841 100644 (file)
@@ -51,16 +51,16 @@ static void time_help(void)
 {
        printf(
 "time match options:\n"
-"  --datestart time     Start and stop time, to be given in ISO 8601\n"
-"  --datestop time      (YYYY[-MM[-DD[Thh[:mm[:ss]]]]])\n"
-"  --timestart time     Start and stop daytime (hh:mm[:ss])\n"
-"  --timestop time      (between 00:00:00 and 23:59:59)\n"
-"  --monthdays value    List of days on which to match, separated by comma\n"
-"                       (Possible days: 1 to 31; defaults to all)\n"
-"  --weekdays value     List of weekdays on which to match, sep. by comma\n"
-"                       (Possible days: Mon,Tue,Wed,Thu,Fri,Sat,Sun or 1 to 7\n"
-"                       Defaults to all weekdays.)\n"
-"  --localtz/--utc      Time is interpreted as UTC/local time\n");
+"    --datestart time     Start and stop time, to be given in ISO 8601\n"
+"    --datestop time      (YYYY[-MM[-DD[Thh[:mm[:ss]]]]])\n"
+"    --timestart time     Start and stop daytime (hh:mm[:ss])\n"
+"    --timestop time      (between 00:00:00 and 23:59:59)\n"
+"[!] --monthdays value    List of days on which to match, separated by comma\n"
+"                         (Possible days: 1 to 31; defaults to all)\n"
+"[!] --weekdays value     List of weekdays on which to match, sep. by comma\n"
+"                         (Possible days: Mon,Tue,Wed,Thu,Fri,Sat,Sun or 1 to 7\n"
+"                         Defaults to all weekdays.)\n"
+"    --localtz/--utc      Time is interpreted as UTC/local time\n");
 }
 
 static void time_init(struct xt_entry_match *m)
index a07d49e7d81ed793dcc94ae3f222b722f3b4149c..ab4a09c6a087813c33ac7a5ca9021ec12c738e31 100644 (file)
@@ -19,7 +19,7 @@ Only match during the given daytime. The possible time range is 00:00:00 to
 23:59:59. Leading zeroes are allowed (e.g. "06:03") and correctly interpreted
 as base-10.
 .TP
-[\fB!\fR] \fB--monthday\fR \fIday\fR[\fB,\fR\fIday\fR...]
+[\fB!\fR] \fB--monthdays\fR \fIday\fR[\fB,\fR\fIday\fR...]
 .IP
 Only match on the given days of the month. Possible values are \fB1\fR
 to \fB31\fR. Note that specifying \fB31\fR will of course not match