]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We need to ensure that our interface has the address before configuring routes.
authorRoy Marples <roy@marples.name>
Mon, 1 Dec 2008 16:56:01 +0000 (16:56 +0000)
committerRoy Marples <roy@marples.name>
Mon, 1 Dec 2008 16:56:01 +0000 (16:56 +0000)
configure.c

index 736c1883e8bea32cb186cf51f30566067ff867e3..f7e0c164790071c7546fa0aff07256b25b6d51f0 100644 (file)
@@ -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;
 }