代码拉取完成,页面将自动刷新
From 5d0f8bead56a19862ac1e5a9dbd30797e24be6b4 Mon Sep 17 00:00:00 2001
From: hkk <hankangkang5@huawei.com>
Date: Sat, 10 Aug 2024 17:11:55 +0800
Subject: [PATCH] virtio_user: The program establishes a network connection
when network card status is up
---
src/lstack/core/lstack_virtio.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/lstack/core/lstack_virtio.c b/src/lstack/core/lstack_virtio.c
index f95b289..b8114e8 100644
--- a/src/lstack/core/lstack_virtio.c
+++ b/src/lstack/core/lstack_virtio.c
@@ -147,6 +147,13 @@ static int virtio_netif_up(void)
}
posix_api->close_fn(sockfd);
+ /*
+ * For virtio_user IPv6 addresses, the kernel will check if they are valid,
+ * so wait a few seconds for the address status to change from scope global tentative to scope global.
+ * 3:systerm check ipv6 addr
+ */
+ sleep(3);
+
return 0;
}
--
2.33.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。