[PATCH] net:ipv4: Use shift left 2 to calculate the length of the IPv4 header.

Jakub Kicinski kuba at kernel.org
Mon Apr 28 20:42:46 UTC 2025


On Sun, 27 Apr 2025 14:17:06 +0800 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.

Doesn't seem worth the churn, sorry.



More information about the Linux-security-module-archive mailing list