Unverified Commit 95d4c1c4 by Christian Brauner Committed by GitHub

Merge pull request #3392 from tomponline/tp-ipvlan-netlink

src/lxc/network: Fixes netlink attribute type 1 has an invalid length message
parents 1bfaf96f 3a934e2e
...@@ -586,7 +586,7 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int ...@@ -586,7 +586,7 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
if (!nest2) if (!nest2)
return ret_errno(EPROTO); 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); return ret_errno(EPROTO);
/* if_link.h does not define the isolation flag value for bridge mode (unlike IPVLAN_F_PRIVATE and /* 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