]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: dhcp6pd: set default metric 256 for delegated prefix 21055/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Oct 2021 20:57:30 +0000 (05:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Oct 2021 17:36:20 +0000 (02:36 +0900)
commitd0619f2c2b3865e930da9832a246c97d35f63b85
tree8495fe07f85a259e7929f2547ae16c00c1e13e36
parent10ab5ed5a859e0c7a8f43fd80611ee5efe6bd61d
network: dhcp6pd: set default metric 256 for delegated prefix

When Assign= in [DHCPv6PrefixDelegation] is enabled, then the kernel
will create the prefix route for the assigned address with metric 256.
When Assign= is disabled, then the kernel will create the route with
metric 1024.

For the default value, we should choose a smaller value (higher priority)
than 1024, as the unreachable routes for delegated prefix will be
configured with 1024.
man/systemd.network.xml
src/network/networkd-dhcp-common.h
src/network/networkd-network.c