On Wed, 2008-11-05 at 14:56 +0000, Stanko Nedic wrote:

> Hi Kieran, I have checked the addresses of the fields in eth_hdr and
> ip_hdr structs (together these form the ethip_hdr struct) and compared
> them to the addresses of the packet data. 
>  
> The addresses of the fields in eth_hdr struct are correctly aligned,
> but it seems that the address of the ip_hdr struct is 2 bytes after
> where it should be. (i.e. not packed properly as you mentioned). 

Yes, sounds like it's sticking two bytes between the fields in the
ethip_hdr struct.  I'm not sure what the best solution for you is, other
than trying to debug why the packing macros aren't working with your
compiler.

Kieran



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to