Commit 3a934e2e by Thomas Parrott

src/lxc/network: Fixes netlink attribute type 1 has an invalid length message

Fixes #3386 Signed-off-by: 's avatarThomas Parrott <thomas.parrott@canonical.com>
parent 1bfaf96f
......@@ -586,7 +586,7 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
if (!nest2)
return ret_errno(EPROTO);
if (nla_put_u32(nlmsg, IFLA_IPVLAN_MODE, mode))
if (nla_put_u16(nlmsg, IFLA_IPVLAN_MODE, mode))
return ret_errno(EPROTO);
/* if_link.h does not define the isolation flag value for bridge mode (unlike IPVLAN_F_PRIVATE and
......
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