]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: set protocol to route assigned through DHCP6 or DHCP6-PD
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 Dec 2020 10:00:56 +0000 (19:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Dec 2020 02:23:23 +0000 (11:23 +0900)
src/network/networkd-dhcp6.c

index 95025acbfd1c41ea11e00341aa424ca378d40437..6592cdbfe09e6eb84f1a6b0a10674b0321e27923 100644 (file)
@@ -279,6 +279,7 @@ static int dhcp6_set_pd_route(Link *link, const union in_addr_union *prefix, con
         route->family = AF_INET6;
         route->dst = *prefix;
         route->dst_prefixlen = 64;
+        route->protocol = RTPROT_DHCP;
 
         r = route_configure(route, link, dhcp6_pd_route_handler, &ret);
         if (r < 0)
@@ -826,6 +827,7 @@ static int dhcp6_set_unreachable_route(Link *link, const union in_addr_union *ad
         route->dst_prefixlen = prefixlen;
         route->table = link_get_dhcp_route_table(link);
         route->type = RTN_UNREACHABLE;
+        route->protocol = RTPROT_DHCP;
 
         r = route_configure(route, link, dhcp6_route_handler, &ret);
         if (r < 0)