lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240308145859.6017bd7f@hermes.local>
Date: Fri, 8 Mar 2024 14:58:59 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Petr Machata <petrm@...dia.com>
Cc: David Ahern <dsahern@...nel.org>, <netdev@...r.kernel.org>, Ido Schimmel
 <idosch@...dia.com>, <mlxsw@...dia.com>
Subject: Re: [PATCH iproute2-next 1/4] libnetlink: Add rta_getattr_uint()

On Fri, 8 Mar 2024 23:29:06 +0100
Petr Machata <petrm@...dia.com> wrote:

> +static inline __u64 rta_getattr_uint(const struct rtattr *rta)
> +{
> +	if (RTA_PAYLOAD(rta) == sizeof(__u32))
> +		return rta_getattr_u32(rta);
> +	return rta_getattr_u64(rta);

Don't understand the use case here.
The kernel always sends the same payload size for the same attribute.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ