[Top][All Lists]

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

Re: [lwip-users] lwIP - Problem with packets

From: Kieran Mansley
Subject: Re: [lwip-users] lwIP - Problem with packets
Date: Wed, 05 Nov 2008 16:25:51 +0000

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


reply via email to

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