Change IP reloading order
authorSteven Barth <steven@midlink.org>
Mon, 10 Jun 2013 10:33:32 +0000 (12:33 +0200)
committerSteven Barth <steven@midlink.org>
Mon, 10 Jun 2013 10:33:32 +0000 (12:33 +0200)
interface.c

index 30e48cf526b778c9bb27a4a2b0d47370a03b0452..96f8e6d70029a74e89064a08ae219c973ab2c72f 100644 (file)
@@ -874,9 +874,9 @@ interface_change_config(struct interface *if_old, struct interface *if_new)
 
        if (reload_ip) {
                interface_ip_set_enabled(&if_old->config_ip, false);
-               interface_ip_set_enabled(&if_old->config_ip, if_new->config_ip.enabled);
                interface_ip_set_enabled(&if_old->proto_ip, false);
                interface_ip_set_enabled(&if_old->proto_ip, if_new->proto_ip.enabled);
+               interface_ip_set_enabled(&if_old->config_ip, if_new->config_ip.enabled);
        }
 
        interface_write_resolv_conf();