From: Thomas Parrott Date: Wed, 22 Apr 2020 09:11:07 +0000 (+0100) Subject: src/lxc/network: Fixes netlink attribute type 1 has an invalid length message X-Git-Tag: lxc-5.0.0~444^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a934e2e53aa697505259d9fa4c6c07dafeafa92;p=thirdparty%2Flxc.git src/lxc/network: Fixes netlink attribute type 1 has an invalid length message Fixes #3386 Signed-off-by: Thomas Parrott --- diff --git a/src/lxc/network.c b/src/lxc/network.c index 6bdcd71a5..a825180cf 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -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