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
0f03b155
Unverified
Commit
0f03b155
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 #3074 from brauner/2019-07-03/fix_phys_network_creation
network: remove faulty restriction
parents
4f71ecb8
e318f2c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
network.c
src/lxc/network.c
+0
-8
No files found.
src/lxc/network.c
View file @
0f03b155
...
@@ -3487,7 +3487,6 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev)
...
@@ -3487,7 +3487,6 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev)
{
{
char
ifname
[
IFNAMSIZ
];
char
ifname
[
IFNAMSIZ
];
int
err
;
int
err
;
const
char
*
net_type_name
;
char
*
current_ifname
=
ifname
;
char
*
current_ifname
=
ifname
;
char
bufinet4
[
INET_ADDRSTRLEN
],
bufinet6
[
INET6_ADDRSTRLEN
];
char
bufinet4
[
INET_ADDRSTRLEN
],
bufinet6
[
INET6_ADDRSTRLEN
];
...
@@ -3508,13 +3507,6 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev)
...
@@ -3508,13 +3507,6 @@ static int lxc_setup_netdev_in_child_namespaces(struct lxc_netdev *netdev)
if
(
netdev
->
type
==
LXC_NET_NONE
)
if
(
netdev
->
type
==
LXC_NET_NONE
)
return
0
;
return
0
;
if
(
netdev
->
type
!=
LXC_NET_VETH
)
{
net_type_name
=
lxc_net_type_to_str
(
netdev
->
type
);
ERROR
(
"%s networks are not supported for containers "
"not setup up by privileged users"
,
net_type_name
);
return
-
1
;
}
netdev
->
ifindex
=
if_nametoindex
(
netdev
->
created_name
);
netdev
->
ifindex
=
if_nametoindex
(
netdev
->
created_name
);
if
(
!
netdev
->
ifindex
)
if
(
!
netdev
->
ifindex
)
SYSERROR
(
"Failed to retrieve ifindex for network device with name %s"
,
SYSERROR
(
"Failed to retrieve ifindex for network device with name %s"
,
...
...
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