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

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

diff -u --recursive --new-file pre2.0.4/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -1712,8 +1712,13 @@
 
 void ip_rt_update(int event, struct device *dev)
 {
+/*
+ *	This causes too much grief to do now.
+ */
+#ifdef COMING_IN_2_1
 	if (event == NETDEV_UP)
 		rt_add(RTF_HOST|RTF_UP, dev->pa_addr, ~0, 0, dev, 0, 0, 0, 0);
 	else if (event == NETDEV_DOWN)
 		rt_del(dev->pa_addr, ~0, dev, 0, RTF_HOST|RTF_UP, 0);
+#endif		
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this