From: Yu Watanabe Date: Sat, 4 Dec 2021 21:57:41 +0000 (+0900) Subject: network: dhcp6pd: use the kernel's default value for priority of unreachable route X-Git-Tag: v250-rc1~40^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F21653%2Fhead;p=thirdparty%2Fsystemd.git network: dhcp6pd: use the kernel's default value for priority of unreachable route This should not change any behavior, as both values are equivalent. --- diff --git a/src/network/networkd-dhcp-prefix-delegation.c b/src/network/networkd-dhcp-prefix-delegation.c index 36284239556..9922279fe2e 100644 --- a/src/network/networkd-dhcp-prefix-delegation.c +++ b/src/network/networkd-dhcp-prefix-delegation.c @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ +#include + #include "sd-dhcp6-client.h" #include "hashmap.h" @@ -700,7 +702,7 @@ static int dhcp6_request_unreachable_route( route->dst_prefixlen = prefixlen; route->type = RTN_UNREACHABLE; route->protocol = RTPROT_DHCP; - route->priority = DHCP_ROUTE_METRIC; + route->priority = IP6_RT_PRIO_USER; route->lifetime_usec = lifetime_usec; if (route_get(link->manager, NULL, route, &existing) < 0)