From: Ehsan Mohandesi Date: Thu, 18 May 2023 18:24:39 +0000 (-0700) Subject: net: ipv6: network protocol structures should be packed X-Git-Tag: v2025.01-rc5-pxa1908~914^2~2 X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=1196e5241d9e0167e668af42d4327d483cf052ae;p=u-boot.git net: ipv6: network protocol structures should be packed The structure icmp6_ra_prefix_info needs to be packed because it is read from a network stream. Signed-off-by: Ehsan Mohandesi Reviewed-by: Viacheslav Mitrofanov Reviewed-by: Ramon Fried --- diff --git a/include/net6.h b/include/net6.h index beafc05338..1e766aa720 100644 --- a/include/net6.h +++ b/include/net6.h @@ -204,7 +204,7 @@ struct icmp6_ra_prefix_info { * be initialized to zero by the sender and ignored by the receiver. */ struct in6_addr prefix; -}; +} __packed; extern struct in6_addr const net_null_addr_ip6; /* NULL IPv6 address */ extern struct in6_addr net_gateway6; /* Our gateways IPv6 address */