Bill Auerbach wrote:
From: Stephane Lesage [mailto:[email protected]]
Compiling with #pragma pack(2) works for me.
As did I and discussed it here:
http://lists.nongnu.org/archive/html/lwip-users/2009-09/msg00027.html
Nothing in lwIP that is byte aligned is accessed by casting to u16_t or u32_t.
Packing by 2 works for me as well.
Yes, but aside from etharp (needs struct ip_addr2), IP frag/reass and
netbios, wouldn't packing by 4 work for you as well? As long as the IP
header of TX- and RX-packets is aligned, it *should* work, I think. My
problem is I currently cannot test it - I'd have to dig out my last
embedded platform that doesn't support unaligned pointers as Intel
unfortunately does...
Simon
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users