lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] IP header alignment problems


From: Kieran Mansley
Subject: Re: [lwip-devel] IP header alignment problems
Date: Thu, 14 Jan 2010 09:30:58 +0000

On Wed, 2010-01-13 at 15:17 +0100, Małowidzki, Marek wrote:

> Question: is any other approach possible? We would like to avoid
> modifications to LwIP (i.e., make necessary changes as small as
> possible). 

Given all the restrictions you've outlined, I think your current
approach is the best one.  The only other way that I can think of is if
your MAC could be persuaded to add the required 2 bytes of padding
before you DMA it, or if you can DMA from a non-aligned address (you
only mention a restriction on the destination of the DMA) and start from
2 bytes before the beginning of the frame (to introduce the 2 bytes of
padding in the pbuf) without causing problems.

Kieran





reply via email to

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