代码拉取完成,页面将自动刷新
同步操作将从 yangshicheng/systemd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From a6c264cbd6fc8c10c905ee2c1cd22717247c3c25 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Wed, 8 Dec 2021 05:35:37 +0900
Subject: [PATCH] network: address: read flags from message header when
IFA_FLAGS is not supported by kernel
Follow-up for 0828a38605975b68c14c9194a1ee2c5c2ff7038f.
Fixes #21670.
(cherry picked from commit 8ed68422e1bafc84afe524bc5020d343bc6163ca)
Conflict:NA
Reference:https://github.com/systemd/systemd/commit/a6c264cbd6fc8c10c905ee2c1cd22717247c3c25
---
src/network/networkd-address.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c
index 7b221516d7..bfc2e19bee 100644
--- a/src/network/networkd-address.c
+++ b/src/network/networkd-address.c
@@ -1368,6 +1368,14 @@ int manager_rtnl_process_address(sd_netlink *rtnl, sd_netlink_message *message,
}
r = sd_netlink_message_read_u32(message, IFA_FLAGS, &tmp->flags);
+ if (r == -ENODATA) {
+ unsigned char flags;
+
+ /* For old kernels. */
+ r = sd_rtnl_message_addr_get_flags(message, &flags);
+ if (r >= 0)
+ tmp->flags = flags;
+ }
if (r < 0) {
log_link_warning_errno(link, r, "rtnl: received address message without flags, ignoring: %m");
return 0;
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。