]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: dhcp6pd: use the kernel's default value for priority of unreachable route 21653/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 4 Dec 2021 21:57:41 +0000 (06:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 7 Dec 2021 09:35:30 +0000 (18:35 +0900)
This should not change any behavior, as both values are equivalent.

src/network/networkd-dhcp-prefix-delegation.c

index 3628423955684af183b70cd829f591fb30ecb1d3..9922279fe2e2c23c6bea24139f2225bdc8ba5017 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <linux/ipv6_route.h>
+
 #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)