]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Reverted r6754. libipt_icmp has the option 'any', so it's unnecessary
authorYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Mon, 19 Feb 2007 05:01:39 +0000 (05:01 +0000)
committerYasuyuki KOZAKAI <yasuyuki@netfilter.org>
Mon, 19 Feb 2007 05:01:39 +0000 (05:01 +0000)
to check no option of ICMP type.

extensions/libipt_icmp.c

index ce4683792c2b1c7577def88a8a90de0054465ac4..a6e642a2a3824682aaf977aac35bda7575d3678e 100644 (file)
@@ -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 = {