From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: joerg@higgsboson.tk Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id f214773b for ; Tue, 31 Oct 2017 08:56:06 +0000 (UTC) Received: from mail.thalheim.io (mail.thalheim.io [188.68.39.17]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c8659018 for ; Tue, 31 Oct 2017 08:56:06 +0000 (UTC) Received: from [IPv6:2001:608:a01:2:3602:86ff:fe1a:7b47] (unknown [IPv6:2001:608:a01:2:3602:86ff:fe1a:7b47]) by mail.thalheim.io (Postfix) with ESMTPSA id 7FD94671BD for ; Tue, 31 Oct 2017 08:58:23 +0000 (UTC) From: =?UTF-8?Q?J=c3=b6rg_Thalheim?= Subject: [PATCH] wg: correct type for CTRL_ATTR_FAMILY_ID To: "wireguard@lists.zx2c4.com" Message-ID: <462fb5c1-0832-a394-8839-d9b54bcb13fa@thalheim.io> Date: Tue, 31 Oct 2017 08:55:25 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Signed-off-by: Joerg Thalheim --- src/tools/mnlg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/mnlg.c b/src/tools/mnlg.c index 9135651..5ac72e2 100644 --- a/src/tools/mnlg.c +++ b/src/tools/mnlg.c @@ -19,7 +19,7 @@ struct mnlg_socket { struct mnl_socket *nl; char *buf; - uint32_t id; + uint16_t id; uint8_t version; unsigned int seq; unsigned int portid; @@ -206,7 +206,7 @@ int mnlg_socket_group_add(struct mnlg_socket *nlg, const char *group_name) nlh = __mnlg_msg_prepare(nlg, CTRL_CMD_GETFAMILY, NLM_F_REQUEST | NLM_F_ACK, GENL_ID_CTRL, 1); - mnl_attr_put_u32(nlh, CTRL_ATTR_FAMILY_ID, nlg->id); + mnl_attr_put_u16(nlh, CTRL_ATTR_FAMILY_ID, nlg->id); err = mnlg_socket_send(nlg, nlh); if (err < 0) -- 2.14.3