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
53cffd75
Unverified
Commit
53cffd75
authored
Apr 09, 2020
by
Thomas Parrott
Committed by
Stéphane Graber
Apr 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/lxc/network: ipvlan comment and code style tweak
Signed-off-by:
Thomas Parrott
<
thomas.parrott@canonical.com
>
parent
b2722ecb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
network.c
src/lxc/network.c
+4
-4
No files found.
src/lxc/network.c
View file @
53cffd75
...
@@ -589,11 +589,11 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
...
@@ -589,11 +589,11 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
if
(
nla_put_u32
(
nlmsg
,
IFLA_IPVLAN_MODE
,
mode
))
if
(
nla_put_u32
(
nlmsg
,
IFLA_IPVLAN_MODE
,
mode
))
return
ret_errno
(
EPROTO
);
return
ret_errno
(
EPROTO
);
/* if_link.h does not define the isolation flag value for bridge mode so we define it as 0
/* if_link.h does not define the isolation flag value for bridge mode (unlike IPVLAN_F_PRIVATE and
* and only send mode if mode >0 as default mode is bridge anyway according to ipvlan docs.
* IPVLAN_F_VEPA) so we define it as 0 and only send mode if mode >0 as default mode is bridge anyway
* according to ipvlan docs.
*/
*/
if
(
isolation
>
0
&&
if
(
isolation
>
0
&&
nla_put_u16
(
nlmsg
,
IFLA_IPVLAN_ISOLATION
,
isolation
))
nla_put_u16
(
nlmsg
,
IFLA_IPVLAN_ISOLATION
,
isolation
))
return
ret_errno
(
EPROTO
);
return
ret_errno
(
EPROTO
);
nla_end_nested
(
nlmsg
,
nest2
);
nla_end_nested
(
nlmsg
,
nest2
);
...
...
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