lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Struct packing/alignment problems


From: Jani Monoses
Subject: Re: [lwip-users] Struct packing/alignment problems
Date: Mon, 3 May 2004 12:39:08 +0300

> 
> I think we should clean up the code to extract the unaligned header 
> fields into the correctly typed temporary variables and use those 
> variables in further protocol code.
> 
> The underlying thought is to keep the protocol code clean from solving
> the alignment issues.
> 
> I have applied your patch blindly to the current CVS tree, just to
> make sure it gets developer attention as this is a long standing
> important issue.

I made a change to etharp.h so that old behaviour(no padding ) is
restored. If PAD_ETH_SIZE is defined outside the file (lwipopts,
compiler flag) than it gets used else it is 0.
The reason is that with the change it did not work with ecos and
possibly with any gcc target.

Jani




reply via email to

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