patch-1.3.33 linux/net/ipv4/devinet.c

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

diff -u --recursive --new-file v1.3.32/linux/net/ipv4/devinet.c linux/net/ipv4/devinet.c
@@ -107,14 +107,14 @@
 	 
 	for (dev = dev_base; dev != NULL; dev = dev->next) 
 	{
-		if (!(dev->flags & IFF_UP))
+		if ((!(dev->flags & IFF_UP)) || dev->family!=AF_INET)
 			continue;
 		/*
 		 *	If the protocol address of the device is 0 this is special
 		 *	and means we are address hunting (eg bootp).
 		 */
 		 
-		if ((dev->pa_addr == 0)/* || (dev->flags&IFF_PROMISC)*/)
+		if (dev->pa_addr == 0)
 			return IS_MYADDR;
 		/*
 		 *	Is it the exact IP address? 

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