summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org>2007-02-19 05:01:39 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=yasuyuki/emailAddress=yasuyuki@netfilter.org>2007-02-19 05:01:39 +0000
commit6ef120e980e3e44bab704a01414a2ebec1c4c481 (patch)
tree2e95b8233301eb1cadfb8e1d4d1e57193cb6d162
parent12b15c4c2bd241d3383e4284529c4c250cf51697 (diff)
Reverted r6754. libipt_icmp has the option 'any', so it's unnecessary
to check no option of ICMP type.
-rw-r--r--extensions/libipt_icmp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c
index ce46837..a6e642a 100644
--- a/extensions/libipt_icmp.c
+++ b/extensions/libipt_icmp.c
@@ -281,12 +281,9 @@ static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match)
}
}
-/* Final check; we don't care. */
+/* Final check; we don't care. We can pass 0xFF to match any type */
static void final_check(unsigned int flags)
{
- if (!flags)
- exit_error(PARAMETER_PROBLEM,
- "icmp match: You must specify `--icmp-type'");
}
static struct iptables_match icmp = {