14 Star 5 Fork 32

src-openEuler/gazelle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0238-virtio_user-The-program-establishes-a-network-connec.patch 903 Bytes
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/gazelle.git
git@gitee.com:src-openeuler/gazelle.git
src-openeuler
gazelle
gazelle
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385