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: <ed15dbce-a69f-4d37-a1de-9392623a712e@wizmail.org>
Date: Sun, 27 Apr 2025 17:55:47 +0100
From: Jeremy Harris <jgh@...mail.org>
To: Chaohai Chen <wdhh6@...yun.com>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] net:ipv4: Use shift left 2 to calculate the length of the
 IPv4 header.

On 2025/04/27 7:17 AM, Chaohai Chen wrote:
> Encapsulate the IPV4_HEADER_LEN macro and use shift left 2 to calculate
> the length of the IPv4 header instead of multiplying 4 everywhere.

Isn't that better left for the compiler to decide?
-- 
Cheers,
   Jeremy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ