]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
inet6: Don't install a default route if no global address
authorRoy Marples <roy@marples.name>
Sun, 25 Aug 2019 13:40:20 +0000 (14:40 +0100)
committerRoy Marples <roy@marples.name>
Sun, 25 Aug 2019 13:40:20 +0000 (14:40 +0100)
commita3830c3f3d7af8db0353f11a3625979e122819a7
treed006d65432ebbff1cb6f11983347b5030222ae54
parenta7827e357ea2e847cb34d7e46cfb9b5db67637e8
inet6: Don't install a default route if no global address

This works around an issue where some routers advertise themselves
as a default router, but offer no address to actually use.
Thus, it is actually useless as a router.
If an address is added by any other means (DHCPv6, static, etc)
then the default route is installed once more.

This is also dynamic - dhcpcd reacts to addresses being added,
removed, duplicated, detached, etc.
src/if-options.h
src/ipv6.c
src/ipv6.h
src/ipv6nd.c
src/ipv6nd.h
src/route.c