From: Roy Marples Date: Mon, 1 Dec 2008 16:56:01 +0000 (+0000) Subject: We need to ensure that our interface has the address before configuring routes. X-Git-Tag: v4.0.7~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2280a3364fadd15da9b9b0956b9d9f8e28cf1711;p=thirdparty%2Fdhcpcd.git We need to ensure that our interface has the address before configuring routes. --- diff --git a/configure.c b/configure.c index 736c1883..f7e0c164 100644 --- a/configure.c +++ b/configure.c @@ -405,16 +405,12 @@ configure(struct interface *iface, const char *reason, } #endif - configure_routes(iface, dhcp, options); - up = (iface->addr.s_addr != addr.s_addr || - iface->net.s_addr != net.s_addr); iface->addr.s_addr = addr.s_addr; iface->net.s_addr = net.s_addr; - + configure_routes(iface, dhcp, options); if (!lease->frominfo) if (write_lease(iface, dhcp) == -1) logger(LOG_ERR, "write_lease: %s", strerror(errno)); - run_script(options, iface->name, reason, dhcp, old); return 0; }