]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
doc: augment ICMP manpage by type/code syntax
authorJan Engelhardt <jengelh@medozas.de>
Tue, 13 Jan 2009 14:30:10 +0000 (15:30 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Wed, 14 Jan 2009 05:44:35 +0000 (06:44 +0100)
The ICMP match module also allows numeric type/code as in
"--icmp-type type/code". Document it.

Based upon a patch by Victor Stinner <vstinner@inl.fr>.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libipt_icmp.c
extensions/libipt_icmp.man

index d0b7bb310c23d712f066709e9675441b73717622..fa5a5409e44110e626a8b433d036d42264ea6bdd 100644 (file)
@@ -102,7 +102,7 @@ static void icmp_help(void)
        printf(
 "icmp match options:\n"
 "[!] --icmp-type typename      match icmp type\n"
-"                              (or numeric type or type/code)\n");
+"[!] --icmp-type type[/code]   (or numeric type or type/code)\n");
        print_icmptypes();
 }
 
index 8c1bdbe493b10ed8c981724526de18b091fd614c..1039704f7ff8f3c847c9a0b04fd380a1bea1486a 100644 (file)
@@ -1,9 +1,9 @@
 This extension can be used if `\-\-protocol icmp' is specified. It
 provides the following option:
 .TP
-[\fB!\fP] \fB\-\-icmp\-type\fP \fItypename\fP
+[\fB!\fP] \fB\-\-icmp\-type\fP {\fItype\fP[\fB/\fP\fIcode\fP]|\fItypename\fP}
 This allows specification of the ICMP type, which can be a numeric
-ICMP type, or one of the ICMP type names shown by the command
+ICMP type, type/code pair, or one of the ICMP type names shown by the command
 .nf
  iptables \-p icmp \-h
 .fi