From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFC02188580 for ; Tue, 31 Dec 2024 07:42:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735630941; cv=none; b=FymASvDFOe7bKU8huvIWAeIjqvGl2ZvRzsiySMehBYoeXExfgUx+DdHBbVao3cJHeqxt6HIVzymFROcWdQD7/fPQIZM2hJFWE+o0J/24K1ZgwpTB5zPG9K6aZB78cH4COx3VWTrzG7FUyznHonW2gokwj0htvLAD0dNsdZawj50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735630941; c=relaxed/simple; bh=OIIIHvRIxIHxEBMmDuGdkER/XB9yAK9pRHFHJSHH2Nk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tlbjeWlRKpDIAYG7wk9s1UamtlIUN53fXQRQVlcp2k9eD594SCbM8xb+NC4u6RGFtlqrxmgIMlyWR7yPp2iu0iA3DCyFMPQpwQFxXwWgBGluaSsSlG/fgSW2Ggyz9wkgceJ5F1mRdyVHgm6LuFQwyuUl/u6q+h+9TpYc3/UGwKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=openvpn.net; spf=pass smtp.mailfrom=openvpn.com; dkim=pass (2048-bit key) header.d=openvpn.net header.i=@openvpn.net header.b=QsKlaobR; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=openvpn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=openvpn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=openvpn.net header.i=@openvpn.net header.b="QsKlaobR" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-aaf3c3c104fso478537666b.1 for ; Mon, 30 Dec 2024 23:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvpn.net; s=google; t=1735630935; x=1736235735; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SUQ/117o2pVOfsQwHm9Em7LXO/LveElAMhz4OgmXTrM=; b=QsKlaobRqW5WfgOLJhs3QcoRm+6VquQKBWzay6xhNFGXTR/J8tRL5fHdZXwS6n6ssu ob4lTP/qIo8breSwvXl5AKNPmLpgSlDU2ndSA41l7rajEVgsfHqMsBgN1xyPchfVwyQZ 13B07bRIq4h79LY9QxF1/VcRBL3nruIOZTvyAIY7tdmJofoJ7g+6imCdGI/plziHJkTZ NLBrso+YDg8dVzCrVtNlIgbUOdZ5yK0jxHYnZ+YvMMPMfricNI6pAonwwKZLBO3glz0s Rq5kt+Q2w1oaWyIGj8Vsjz6mlIMbd80sgreGa4+x1wRsnFp48uCOfT1Ifh+rC4ho1/3d YR8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735630935; x=1736235735; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SUQ/117o2pVOfsQwHm9Em7LXO/LveElAMhz4OgmXTrM=; b=pFJ/JL7qyZm/Ex3PqVDHBv8oSqOLJ6eVt3q9clbhM117LtvOjEtNDKzW/w+rz2lhBC UxGbrAmzR2SAoffUWfiJpnOWv669gbCahEc+49Dzl/V2RX8IfVypWfVSazojJYfD4uzl Z7YAWnL2ChL64118M6MwVG69ESfBSAPhB5THIfcr1pFCVVFcRvxyW+rwH4AkR6P6jlv0 0qkPRlR9EEPqUdfPymvPgrMFMNVNxfBX6ArCugumGcGulFbU78NRdHNEYMOovFc07jud E2VziaTN7Ttq8vcHLvGOeJQWqg2RbNd4WWDYwwWaH0Xmi6kQRk8VHWD6+uiHcs5Bu0TP 3oUQ== X-Gm-Message-State: AOJu0YzOG8sV+73rr4c89W6aHKjKeuGSjw6mR8oihhHNbDtVyynBlQN5 3m9w2IO2ho9RW6S0Fh1JE6WuiGkqtMnoIYAraHkj7HWWcRRAb9p3JcWJ5H8/nfI= X-Gm-Gg: ASbGnctrhVYcdCO8285EJgEuwQGhHY67fmj1Q4mgU/Ph6cNDzL7bCRmKYmdgxNSJmQn Ps64NmC9OqxpYYrhI3rCovH3pm1ilIF7r5bG/oXQ/fbPyrnz8Rx78FhLWJAFW+PakPHOIknwVn1 As/ijUJedDohrIyyKx8Mi1wa0yQUbGJCrrPDZC+IOzhTEDYF/JRr05/kg4rS7aaxrOToc6lAg7C wxRQEG7qv13JSLH97mW2JPo+A+FJvZLxoTojwspY+f0Qt8H1RCox4zqpcsVUNq5Hg== X-Google-Smtp-Source: AGHT+IHJ3LZn/dw6Q3RdklojRoLZ4JYqxGeF/O2KsycT1HvQOXnJk5lDUSk8vRMOcWtIAvIoEXjYaQ== X-Received: by 2002:a17:907:7f8e:b0:aa6:995d:9ee8 with SMTP id a640c23a62f3a-aac2702ae5cmr3305806366b.5.1735630935342; Mon, 30 Dec 2024 23:42:15 -0800 (PST) Received: from ?IPV6:2001:67c:2fbc:1000::1001? ([2001:67c:2fbc:1000::1001]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0e89490dsm1538233666b.45.2024.12.30.23.42.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Dec 2024 23:42:14 -0800 (PST) Message-ID: <97f8ebf1-bdea-4084-aadd-360d02d00d85@openvpn.net> Date: Tue, 31 Dec 2024 08:42:11 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v16 26/26] testing/selftests: add test tool and scripts for ovpn module To: Jakub Kicinski Cc: netdev@vger.kernel.org, Eric Dumazet , Paolo Abeni , Donald Hunter , Shuah Khan , sd@queasysnail.net, ryazanov.s.a@gmail.com, Andrew Lunn , Simon Horman , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Xiao Liang , Shuah Khan References: <20241219-b4-ovpn-v16-0-3e3001153683@openvpn.net> <20241219-b4-ovpn-v16-26-3e3001153683@openvpn.net> <20241219200222.4b0365b7@kernel.org> Content-Language: en-US From: Antonio Quartulli In-Reply-To: <20241219200222.4b0365b7@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 20/12/24 05:02, Jakub Kicinski wrote: > On Thu, 19 Dec 2024 02:42:20 +0100 Antonio Quartulli wrote: >> +uint64_t nla_get_uint(struct nlattr *attr) >> +{ >> + if (nla_len(attr) == sizeof(uint32_t)) >> + return nla_get_u32(attr); >> + else >> + return nla_get_u64(attr); >> +} > > Fedora 41 has: libnl3 3.11.0 > which already defines nla_get_uint() > > ovpn-cli.c:46:10: error: conflicting types for ‘nla_get_uint’; have ‘uint64_t(struct nlattr *)’ {aka ‘long unsigned int(struct nlattr *)’} > 46 | uint64_t nla_get_uint(struct nlattr *attr) > | ^~~~~~~~~~~~ > In file included from /usr/include/libnl3/netlink/msg.h:11, > from /usr/include/libnl3/netlink/genl/genl.h:10, > from ovpn-cli.c:26: > /usr/include/libnl3/netlink/attr.h:126:25: note: previous declaration of ‘nla_get_uint’ with type ‘uint64_t(const struct nlattr *)’ {aka ‘long unsigned int(const struct nlattr *)’} > 126 | extern uint64_t nla_get_uint(const struct nlattr *); > | ^~~~~~~~~~~~ dang! I guess I will just rename this function to avoid the clash for the time being. Thanks. Regards, -- Antonio Quartulli OpenVPN Inc.