Unverified Commit 53cffd75 by Thomas Parrott Committed by Stéphane Graber

src/lxc/network: ipvlan comment and code style tweak

parent b2722ecb
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment