Unverified Commit b2722ecb by KUWAZAWA Takuya Committed by Stéphane Graber

network: Make it possible to set the mode of IPVLAN to L2

parent c2e3e9a4
...@@ -582,7 +582,6 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int ...@@ -582,7 +582,6 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
if (nla_put_string(nlmsg, IFLA_INFO_KIND, "ipvlan")) if (nla_put_string(nlmsg, IFLA_INFO_KIND, "ipvlan"))
return ret_errno(EPROTO); return ret_errno(EPROTO);
if (mode) {
nest2 = nla_begin_nested(nlmsg, IFLA_INFO_DATA); nest2 = nla_begin_nested(nlmsg, IFLA_INFO_DATA);
if (!nest2) if (!nest2)
return ret_errno(EPROTO); return ret_errno(EPROTO);
...@@ -598,8 +597,6 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int ...@@ -598,8 +597,6 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
return ret_errno(EPROTO); return ret_errno(EPROTO);
nla_end_nested(nlmsg, nest2); nla_end_nested(nlmsg, nest2);
}
nla_end_nested(nlmsg, nest); nla_end_nested(nlmsg, nest);
if (nla_put_u32(nlmsg, IFLA_LINK, index)) if (nla_put_u32(nlmsg, IFLA_LINK, index))
......
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