Projects
Eulaceura:Factory
gazelle
_service:obs_scm:0238-virtio_user-The-program-e...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0238-virtio_user-The-program-establishes-a-network-connec.patch of Package gazelle
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2