From 3a934e2e53aa697505259d9fa4c6c07dafeafa92 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Wed, 22 Apr 2020 10:11:07 +0100 Subject: [PATCH] src/lxc/network: Fixes netlink attribute type 1 has an invalid length message Fixes #3386 Signed-off-by: Thomas Parrott --- src/lxc/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2