]> 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)
commite1d812354b396ddf27b4cbabd31fd85aafa91343
treed006d65432ebbff1cb6f11983347b5030222ae54
parentb316c5bfb31e915900a5484c937f999860dcdbe9
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