summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-01-30 22:40:12 +0000
committerRoy Marples <roy@marples.name>2019-01-30 22:40:12 +0000
commit2469690184fb77bf3777d782f495203f8245174e (patch)
tree474240fa9586feebe4f0d0fd431e72786c81b286 /src/ipv6nd.c
parent47c4c88b802379aa15675bb6cbb32e36a4386b09 (diff)
downloaddhcpcd-2469690184fb77bf3777d782f495203f8245174e.tar.xz
link: introduce LINK_DOWN_IFFUP
Set this state so when we preserve config on carrier loss. This allows us to remove config if the interface is then brought down.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index b524a9e8..5a248486 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -346,7 +346,7 @@ ipv6nd_sendadvertisement(void *arg)
struct in6_pktinfo pi;
const struct rs_state *state = RS_CSTATE(ifp);
- if (state == NULL || ifp->carrier == LINK_DOWN)
+ if (state == NULL || ifp->carrier <= LINK_DOWN)
goto freeit;
memset(&dst, 0, sizeof(dst));
@@ -408,7 +408,7 @@ ipv6nd_advertise(struct ipv6_addr *ia)
iaf = NULL;
TAILQ_FOREACH(ifp, ctx->ifaces, next) {
state = IPV6_STATE(ifp);
- if (state == NULL || ifp->carrier == LINK_DOWN)
+ if (state == NULL || ifp->carrier <= LINK_DOWN)
continue;
TAILQ_FOREACH(iap, &state->addrs, next) {