patch-2.1.89 linux/net/ipv4/icmp.c

Next file: linux/net/ipv4/igmp.c
Previous file: linux/net/ipv4/fib_semantics.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -877,9 +877,9 @@
 	struct in_ifaddr *ifa;
 	u32 mask;
 
-	if (!ipv4_config.log_martians ||
-	    !IS_ROUTER ||
-	    !in_dev || !in_dev->ifa_list ||
+	if (!in_dev || !in_dev->ifa_list ||
+	    !IN_DEV_LOG_MARTIANS(in_dev) ||
+	    !IN_DEV_FORWARD(in_dev) ||
 	    len < 4 ||
 	    !(rt->rt_flags&RTCF_DIRECTSRC))
 		return;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov