diff options
| author | Roy Marples <roy@marples.name> | 2019-08-30 12:50:00 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-08-30 12:50:00 +0100 |
| commit | 9c43b70c51ab0f5fca871b97b6999d46f289877d (patch) | |
| tree | 70bc170819c67cb41b41e4e352521e84525b651f /src/ipv6.c | |
| parent | fc02542dfaaa580dce2fe3eaf8565d2d1551f70b (diff) | |
| download | dhcpcd-9c43b70c51ab0f5fca871b97b6999d46f289877d.tar.xz | |
Better fix for prior.
Diffstat (limited to 'src/ipv6.c')
| -rw-r--r-- | src/ipv6.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1231,7 +1231,8 @@ out: * or DHCP6 handlers and the existance of any useable * global address on the interface has changed, * call rt_build to add/remove the default route. */ - if (!(ctx->options & DHCPCD_RTBUILD) && + if (ifp->active && ifp->options->options & DHCPCD_IPV6 && + !(ctx->options & DHCPCD_RTBUILD) && (ipv6_ifanyglobal(ifp) != NULL) != anyglobal) rt_build(ctx, AF_INET6); } @@ -2295,9 +2296,6 @@ inet6_raroutes(rb_tree_t *routes, struct dhcpcd_ctx *ctx) struct ra *rap; const struct ipv6_addr *addr; - if (ctx->ra_routers == NULL) - return 0; - TAILQ_FOREACH(rap, ctx->ra_routers, next) { if (rap->expired) continue; |
