patch-2.2.0-pre2 linux/net/ipv4/route.c

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

diff -u --recursive --new-file v2.2.0-pre1/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -950,6 +950,10 @@
 	if (BADCLASS(daddr) || ZERONET(daddr) || LOOPBACK(daddr))
 		goto martian_destination;
 
+	/* Accept anything arriving at 0.0.0.0 */
+	if (in_dev->ifa_list && in_dev->ifa_list->ifa_local == 0)
+		goto local_input;
+
 	/*
 	 *	Now we are ready to route packet.
 	 */

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