The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/3392

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Fixes #3386

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From 3a934e2e53aa697505259d9fa4c6c07dafeafa92 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parr...@canonical.com>
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 <thomas.parr...@canonical.com>
---
 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 6bdcd71a5b..a825180cf7 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
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to