summaryrefslogtreecommitdiff
path: root/src/network/networkd-dhcp6.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-12-03 19:00:56 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-12-04 11:23:23 +0900
commitd9d6a10bce81681042225cef689ab6078f51b859 (patch)
treee8603dd287b12edae041705928187c0d6c7ef04d /src/network/networkd-dhcp6.c
parent575f14eef010101c60e9d4d970e542c815be1994 (diff)
downloadsystemd-d9d6a10bce81681042225cef689ab6078f51b859.tar.gz
network: set protocol to route assigned through DHCP6 or DHCP6-PD
Diffstat (limited to 'src/network/networkd-dhcp6.c')
-rw-r--r--src/network/networkd-dhcp6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c
index 95025acbfd..6592cdbfe0 100644
--- a/src/network/networkd-dhcp6.c
+++ b/src/network/networkd-dhcp6.c
@@ -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)