From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 2 Dec 2011 11:48:11 -0500 Subject: [U-Boot] [PATCH] net: Make sure IPaddr_t is 32 bits in size In-Reply-To: <1322843172-20251-1-git-send-email-weisserm@arcor.de> References: <1322843172-20251-1-git-send-email-weisserm@arcor.de> Message-ID: <201112021148.12459.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 02 December 2011 11:26:12 Matthias Weisser wrote: > When building u-boot as 64 bit application (e.g. sandbox) ulong might be > 64 bits in size. This breaks network code as IPaddr_t is 64 bytes in > size then. This patch makes sure that IPaddr_t is always 32 bits in > size. Also some warnings introduced by this patch are fixed. on 2nd thought, could you clarify why we want it to be 32bits ? it's because that's the size of the address field in an IPv4 packet ... > --- a/include/net.h > +++ b/include/net.h > > -typedef ulong IPaddr_t; > +typedef u32 IPaddr_t; and add a comment here too ... -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: