|
From: | address@hidden |
Subject: | Re: [lwip-users] Change ip_addr from struct to typedef (u32_t) |
Date: | Fri, 05 Feb 2010 15:42:40 +0100 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
Bill Auerbach wrote:
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...From: Stephane Lesage [mailto:address@hidden 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.
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |