diff options
| author | Roy Marples <roy@marples.name> | 2012-01-29 16:49:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2012-01-29 16:49:04 +0000 |
| commit | 70b967d7d79d93d4a347b9437dbb1bccb4663f95 (patch) | |
| tree | 28195816212da7944095f0b7bda9b07b3942d0cb | |
| parent | b1a20121fbd29597d81b0b6b2157a08aa58c0ec0 (diff) | |
| download | dhcpcd-70b967d7d79d93d4a347b9437dbb1bccb4663f95.tar.xz | |
Remove the RA's before reporting no carrier.
| -rw-r--r-- | dhcpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
