[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] IP Address Display Functions

From: Kieran Mansley
Subject: RE: [lwip-users] IP Address Display Functions
Date: Tue, 25 Aug 2009 09:59:32 +0100

On Mon, 2009-08-24 at 14:58 -0400, Bill Auerbach wrote:
> >From: address@hidden
> >[mailto:address@hidden On
> >Behalf Of Chris Strahm
> >Sent: Monday, August 24, 2009 5:33 AM
> >To: Mailing list for lwIP users
> >Subject: [lwip-users] IP Address Display Functions
> >
> >However the "netadr.ip" value here contains a "struct ip_addr".  
> >Since they are not the same, all the above type casting is done
> >to force it to work.  This causes a warning everywhere from GCC
> >about alignment etc.
> I'd like to add that the packing around struct ip_addr is also unnecessary.
> Although it seems benign, it's not.  My version of GCC (NIOS) treats this
> packed struct as char array and does 4 byte loads, ANDs, shifts, and ORs
> everywhere this stuct was used.  I simply use:
> struct ip_addr {
>   u32_t addr;
> };

Please file a bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]