File bnc#577402.diff of Package dhcpcd

--- configure.c.orig	2010-02-09 11:30:58.000000000 +0100
+++ configure.c	2010-02-09 12:05:01.657212130 +0100
@@ -716,6 +716,9 @@
 		    route->netmask.s_addr == 0 &&
 		    ! options->dogateway)
 			continue;
+		/* When the gateway is our IP, reset it to create device route for the destination */
+		if( route->gateway.s_addr == dhcp->address.s_addr )
+			route->gateway.s_addr = INADDR_ANY;
 
                 /*If the gateway address is not in our network we have to set a route for it */
                 if (( route->gateway.s_addr != INADDR_ANY ) && ((route->gateway.s_addr & dhcp->netmask.s_addr ) != ( dhcp->address.s_addr & dhcp->netmask.s_addr )))
openSUSE Build Service is sponsored by