]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
hooks: add NOCARRIER_ROAMING reason
authorRoy Marples <roy@marples.name>
Sun, 27 Dec 2020 19:53:31 +0000 (19:53 +0000)
committerRoy Marples <roy@marples.name>
Sun, 27 Dec 2020 19:53:31 +0000 (19:53 +0000)
commit3547ed19f021396e2f4624f758d681e9a5251dc9
treed674c9d03f4f4baf55ce73e4bb18819868d1b203
parent572a94cef8286f343f39fbfdedcc469ebb94977e
hooks: add NOCARRIER_ROAMING reason

This is given when the OS supports the concept of wireless roaming
or the IP setup can be persisted when the carrier drops.

When this happens, routes are moved to a higher metric (if supported)
to support non preferred but non roaming routes.
The `interface_order` hook variable will now order the interfaces
according to priority and move roaming interfaces to the back of the
list.
If resolvconf is present then it is called with the -C option
to deprecate DNS and if carrier comes back it is called again with the
-c option to activate it once more.

As part of this change, default route metrics have been changed to
support a larger number of interfaces.
base metric 1000 (was 200)
wireless offset 2000 (was 100)
IPv4LL offset 1000000 (was 10000)
roaming offset 2000000
BUILDING.md
hooks/20-resolv.conf
hooks/dhcpcd-run-hooks.8.in
src/dhcpcd.c
src/if.c
src/ipv4ll.c
src/route.c
src/route.h
src/script.c