patch-2.1.15 linux/net/ipv4/ip_alias.c

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

diff -u --recursive --new-file v2.1.14/linux/net/ipv4/ip_alias.c linux/net/ipv4/ip_alias.c
@@ -79,7 +79,9 @@
 struct device *ip_alias_dev_select(struct net_alias_type *this, struct device *main_dev, struct sockaddr *sa)
 {
 	__u32 addr;
+#if 0
 	struct rtable *rt;
+#endif
 	struct device *dev=NULL;
   
 	/*
@@ -102,12 +104,14 @@
 	 *	net_alias module will check if returned device is main_dev's alias
 	 */
 
+#if 0
 	rt = ip_rt_route(addr, 0);
 	if(rt)
 	{
 		dev=rt->rt_dev;
 		ip_rt_put(rt);
 	}
+#endif
 	return dev;
 }
 

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