[netfilter-cvslog] r6754 - trunk/iptables/extensions

yasuyuki at netfilter.org yasuyuki at netfilter.org
Tue Feb 13 05:06:46 CET 2007


Author: yasuyuki at netfilter.org
Date: 2007-02-13 05:06:45 +0100 (Tue, 13 Feb 2007)
New Revision: 6754

Modified:
   trunk/iptables/extensions/libipt_icmp.c
Log:
Error if no ICMP type is specified even though user intended
to use icmp match.



Modified: trunk/iptables/extensions/libipt_icmp.c
===================================================================
--- trunk/iptables/extensions/libipt_icmp.c	2007-02-12 23:51:42 UTC (rev 6753)
+++ trunk/iptables/extensions/libipt_icmp.c	2007-02-13 04:06:45 UTC (rev 6754)
@@ -284,6 +284,9 @@
 /* Final check; we don't care. */
 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 = { 




More information about the netfilter-cvslog mailing list