[Top][All Lists]
[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
- Re: [lwip-users] Struct packing/alignment problems, Timmy Brolin, 2004/05/01
- Re: [lwip-users] Struct packing/alignment problems,
Jani Monoses <=
- Re: [lwip-users] Struct packing/alignment problems, Timmy Brolin, 2004/05/03
- Re: [lwip-users] Struct packing/alignment problems, Jani Monoses, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, K.J. Mansley, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, d99tibr, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, Jani Monoses, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, Timmy Brolin, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, Leon Woestenberg, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, Timmy Brolin, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, Leon Woestenberg, 2004/05/04
- Re: [lwip-users] Struct packing/alignment problems, Timmy Brolin, 2004/05/04