[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] Problems with struct member aligment within lwIP
From: |
Florian Schulze |
Subject: |
[lwip-users] Re: [lwip] Problems with struct member aligment within lwIP |
Date: |
Thu, 09 Jan 2003 00:59:16 -0000 |
Try to pack ethip_hdr in arp.c as well. These were the only two structs I had to
pack.
Hope this helps,
Florian
From: "Konrad, Guido" <address@hidden>
> Hi,
>
> porting lwIP to ARM7TDMI with ADS 1.1 if encounter problems with the member
> alignement within structures. I've found the comment in arp.c to compile the
> structure arp_hdr with __packed directive. Nevertheless it seems that some
> more structures need this. Background is that the ARM compiler always
> constructs structures with an aligment of 4! Only for structures preceeding
> this __packed directive the alignment is 1. But this structures can not be
> carsted to non packed structures, nor casted implizitly to e.g. void*.
>
> Has anybody an answer?
>
> Regards,
>
> Guido Konrad
>
>
> [This message was sent through the lwip discussion list.]
>
[This message was sent through the lwip discussion list.]
- [lwip-users] Re: [lwip] Problems with struct member aligment within lwIP,
Florian Schulze <=