Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
d31059ef
Unverified
Commit
d31059ef
authored
Mar 08, 2020
by
Christian Brauner
Committed by
GitHub
Mar 08, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3278 from tomponline/tp-proxy-sleep
network: Adds short sleep between veth setup and neighbour proxy add
parents
e901a7a1
954e36b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
network.c
src/lxc/network.c
+7
-0
No files found.
src/lxc/network.c
View file @
d31059ef
...
...
@@ -375,6 +375,13 @@ static int instantiate_veth(struct lxc_handler *handler, struct lxc_netdev *netd
}
if
(
netdev
->
priv
.
veth_attr
.
mode
==
VETH_MODE_ROUTER
)
{
/* sleep for a short period of time to work around a bug that intermittently prevents IP neighbour
proxy entries from being added using lxc_ip_neigh_proxy below. When the issue occurs the entries
appear to be added successfully but then do not appear in the proxy list. The length of time
slept doesn't appear to be important, only that the process sleeps for a short period of time.
*/
nanosleep
((
const
struct
timespec
[]){{
0
,
1000
}},
NULL
);
if
(
netdev
->
ipv4_gateway
)
{
char
bufinet4
[
INET_ADDRSTRLEN
];
if
(
!
inet_ntop
(
AF_INET
,
netdev
->
ipv4_gateway
,
bufinet4
,
sizeof
(
bufinet4
)))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment