diff options
| author | Roy Marples <roy@marples.name> | 2019-09-05 10:03:13 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-09-05 10:03:13 +0100 |
| commit | 34b14cedc67fc7ee84d9bf17b260e90722217bf3 (patch) | |
| tree | f1269173d44f998307ad580c5805ada7119cca38 /src/ipv6nd.c | |
| parent | 0f1f06d08dab0aa67b0677d3bc8e3fcb821cd6f6 (diff) | |
| download | dhcpcd-34b14cedc67fc7ee84d9bf17b260e90722217bf3.tar.xz | |
inet6: Fix default route not being installed
We need to check for global addresses on any forwarding interface,
not just the interface we received the RA on.
Otherwise this breaks routers who get a default route only
from the RA and IPv6 addresses only by prefix delegation to
other interfaces.
Diffstat (limited to 'src/ipv6nd.c')
| -rw-r--r-- | src/ipv6nd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c index affc9117..929b071d 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1290,7 +1290,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, } } - if (new_data && !has_address && rap->lifetime && !ipv6_ifanyglobal(ifp)) + if (new_data && !has_address && rap->lifetime && !ipv6_anyglobal(ifp)) logwarnx("%s: no global addresses for default route", ifp->name); |
