From: Yu Watanabe Date: Sun, 9 Jul 2023 03:36:34 +0000 (+0900) Subject: network/address: also save/update priority of prefix route X-Git-Tag: v255-rc1~879^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e18f9b48711e74232555d595dbd50d9bd96e088;p=thirdparty%2Fsystemd.git network/address: also save/update priority of prefix route Strictly speaking, this is not necessary, but let's make the managed Address objects more consistent with the kernel's addresses. --- diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 2dd02f5efbe..e49d21f804d 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -1687,6 +1687,10 @@ int manager_rtnl_process_address(sd_netlink *rtnl, sd_netlink_message *message, else if (r != -ENODATA) log_link_debug_errno(link, r, "rtnl: failed to read IFA_CACHEINFO attribute, ignoring: %m"); + r = sd_netlink_message_read_u32(message, IFA_RT_PRIORITY, &address->route_metric); + if (r < 0 && r != -ENODATA) + log_link_debug_errno(link, r, "rtnl: failed to read IFA_RT_PRIORITY attribute, ignoring: %m"); + address_enter_configured(address); if (req) address_enter_configured(req->userdata);