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
a70d78cd
Unverified
Commit
a70d78cd
authored
Jul 03, 2019
by
Stéphane Graber
Committed by
GitHub
Jul 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3076 from brauner/2019-07-03/network_fixes
network: fixes after unifying network creation
parents
113ca429
3c09b97c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
82 additions
and
56 deletions
+82
-56
network.c
src/lxc/network.c
+78
-52
network.h
src/lxc/network.h
+2
-2
start.c
src/lxc/start.c
+2
-2
No files found.
src/lxc/network.c
View file @
a70d78cd
This diff is collapsed.
Click to expand it.
src/lxc/network.h
View file @
a70d78cd
...
...
@@ -278,8 +278,8 @@ extern int lxc_requests_empty_network(struct lxc_handler *handler);
extern
int
lxc_restore_phys_nics_to_netns
(
struct
lxc_handler
*
handler
);
extern
int
lxc_setup_network_in_child_namespaces
(
const
struct
lxc_conf
*
conf
,
struct
lxc_list
*
network
);
extern
int
lxc_network_send_
veth_names_
to_child
(
struct
lxc_handler
*
handler
);
extern
int
lxc_network_recv_
veth_names_
from_parent
(
struct
lxc_handler
*
handler
);
extern
int
lxc_network_send_to_child
(
struct
lxc_handler
*
handler
);
extern
int
lxc_network_recv_from_parent
(
struct
lxc_handler
*
handler
);
extern
int
lxc_network_send_name_and_ifindex_to_parent
(
struct
lxc_handler
*
handler
);
extern
int
lxc_network_recv_name_and_ifindex_from_child
(
struct
lxc_handler
*
handler
);
extern
int
lxc_netns_set_nsid
(
int
netns_fd
);
...
...
src/lxc/start.c
View file @
a70d78cd
...
...
@@ -1194,7 +1194,7 @@ static int do_start(void *data)
goto
out_error
;
if
(
handler
->
ns_clone_flags
&
CLONE_NEWNET
)
{
ret
=
lxc_network_recv_
veth_names_
from_parent
(
handler
);
ret
=
lxc_network_recv_from_parent
(
handler
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to receive veth names from parent"
);
goto
out_warn_father
;
...
...
@@ -1839,7 +1839,7 @@ static int lxc_spawn(struct lxc_handler *handler)
goto
out_delete_net
;
}
ret
=
lxc_network_send_
veth_names_
to_child
(
handler
);
ret
=
lxc_network_send_to_child
(
handler
);
if
(
ret
<
0
)
{
ERROR
(
"Failed to send veth names to child"
);
goto
out_delete_net
;
...
...
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