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>
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();
}
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