network: set protocol to route assigned through DHCP6 or DHCP6-PD

This commit is contained in:
Yu Watanabe 2020-12-03 19:00:56 +09:00
parent 575f14eef0
commit d9d6a10bce
1 changed files with 2 additions and 0 deletions

View 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)