diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-13 15:30:10 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2009-01-14 06:44:35 +0100 |
commit | 3d12c3bbffb43182df9ac5c0ad549b095d30d021 (patch) | |
tree | 781d61f0153d4b4e3f09caf20c92103541ed13f8 | |
parent | 0e8984a053372879a19f2563eae568e9f67768f2 (diff) |
doc: augment ICMP manpage by type/code syntax
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>
-rw-r--r-- | extensions/libipt_icmp.c | 2 | ||||
-rw-r--r-- | extensions/libipt_icmp.man | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c index d0b7bb31..fa5a5409 100644 --- a/extensions/libipt_icmp.c +++ b/extensions/libipt_icmp.c @@ -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(); } diff --git a/extensions/libipt_icmp.man b/extensions/libipt_icmp.man index 8c1bdbe4..1039704f 100644 --- a/extensions/libipt_icmp.man +++ b/extensions/libipt_icmp.man @@ -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 |