summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-08-25 12:10:00 +0100
committerRoy Marples <roy@marples.name>2019-08-25 12:10:00 +0100
commita7827e357ea2e847cb34d7e46cfb9b5db67637e8 (patch)
tree6bdbe5b86833ea47bcb9bf35fa90428dd2e565ea /src/ipv6.c
parenta9287e98d2d47969fb2ba602eb3d1f72788eae19 (diff)
downloaddhcpcd-a7827e357ea2e847cb34d7e46cfb9b5db67637e8.tar.xz
inet6: Just solicit when a router is unreachable
We shouldn't take the default route away as there could be valid reasons, such as the default route changing interface. Instead, just solicit another router if there are no valid routers on the interface.
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index a024356c..31a0cae0 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -2271,7 +2271,7 @@ inet6_raroutes(rb_tree_t *routes, struct dhcpcd_ctx *ctx)
rt_proto_add(routes, rt);
}
}
- if (rap->lifetime == 0 || !rap->isreachable)
+ if (rap->lifetime == 0)
continue;
rt = inet6_makerouter(rap);
if (rt == NULL)