From 2280a3364fadd15da9b9b0956b9d9f8e28cf1711 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 1 Dec 2008 16:56:01 +0000 Subject: [PATCH] We need to ensure that our interface has the address before configuring routes. --- configure.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } -- 2.47.2