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.
This commit is contained in:
Yu Watanabe
2023-07-31 02:31:05 +09:00
parent b33dd04ebe
commit 7e18f9b487
+4
View File
@@ -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);