From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15AF6C77B7A for ; Thu, 18 May 2023 18:25:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EDE368627A; Thu, 18 May 2023 20:24:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="NaYaUu8i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D6E54862AF; Thu, 18 May 2023 20:24:49 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by phobos.denx.de (Postfix) with ESMTP id 28199857AF for ; Thu, 18 May 2023 20:24:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=emohandesi@linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 1289A20FB1B4; Thu, 18 May 2023 11:24:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1289A20FB1B4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1684434285; bh=7yGX8m84iokEnw1SXZQdiUDFt8nHXsTW6Dmwn85LsWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NaYaUu8i4otVF/F6K0YyTpxTK/u8G4yBxBi0SK3S5og4dbp7rUYHStcXUVX5pQAlU LdKEeSG+HSJ6x4vomRP9C+KpjkuGsmbQH63jIHNCmGnCrFwlNeKeU9HaiX1OjAUIkF Txc/2KLwTTZaKZ08bTTEv+0gy9kUaNSlMCgRMTw0= From: emohandesi@linux.microsoft.com To: u-boot@lists.denx.de Cc: joe.hershberger@ni.com, rfried.dev@gmail.com, v.v.mitrofanov@yadro.com, sjg@chromium.org, emohandesi@linux.microsoft.com, saproj@gmail.com Subject: [PATCH 2/2] net: ipv6: network protocol structures should be packed Date: Thu, 18 May 2023 11:24:39 -0700 Message-Id: <1684434279-1065-3-git-send-email-emohandesi@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1684434279-1065-1-git-send-email-emohandesi@linux.microsoft.com> References: <1684434279-1065-1-git-send-email-emohandesi@linux.microsoft.com> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Ehsan Mohandesi The structure icmp6_ra_prefix_info needs to be packed because it is read from a network stream. Signed-off-by: Ehsan Mohandesi --- 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