[PATCH 2/2] net: ipv6: network protocol structures should be packed
Vyacheslav V. Mitrofanov
v.v.mitrofanov at yadro.com
Fri May 19 09:12:34 CEST 2023
On Thu, 2023-05-18 at 11:24 -0700, emohandesi at linux.microsoft.com
wrote:
> From: Ehsan Mohandesi <emohandesi at linux.microsoft.com>
>
> The structure icmp6_ra_prefix_info needs to be packed because it is
> read
> from a network stream.
>
> Signed-off-by: Ehsan Mohandesi <emohandesi at linux.microsoft.com>
> ---
> include/net6.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/net6.h b/include/net6.h
> index beafc05..1e766aa 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
> */
> --
> 1.8.3.1
>
>
Reviewed-by: Viacheslav Mitrofanov <v.v.mitrofanov at yadro.com>
More information about the U-Boot
mailing list