From ee9e2205dfd53ffc35495dd60b43c59b77aa3839 Mon Sep 17 00:00:00 2001 From: Yasuyuki KOZAKAI Date: Mon, 19 Feb 2007 05:01:39 +0000 Subject: Reverted r6754. libipt_icmp has the option 'any', so it's unnecessary to check no option of ICMP type. --- extensions/libipt_icmp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c index ce468379..a6e642a2 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 = { -- cgit v1.2.3