]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove the RA's before reporting no carrier.
authorRoy Marples <roy@marples.name>
Sun, 29 Jan 2012 16:49:04 +0000 (16:49 +0000)
committerRoy Marples <roy@marples.name>
Sun, 29 Jan 2012 16:49:04 +0000 (16:49 +0000)
dhcpcd.c

index 090a429b1eae3b82721996aabff3757909082f42..819953b5b37216f109c3726cf71220a22b79c60e 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -912,13 +912,13 @@ handle_carrier(int action, int flags, const char *ifname)
                        syslog(LOG_INFO, "%s: carrier lost", iface->name);
                        close_sockets(iface);
                        delete_timeouts(iface, start_expire, NULL);
-                       drop_dhcp(iface, "NOCARRIER");
                        if (iface->ras) {
                                ipv6rs_free(iface);
                                iface->ras = NULL;
                                iface->state->reason = "ROUTERADVERT";
                                run_script(iface);
                        }
+                       drop_dhcp(iface, "NOCARRIER");
                }
        } else if (carrier == 1 && !(~iface->flags & (IFF_UP | IFF_RUNNING))) {
                if (iface->carrier != LINK_UP) {