Sorry, I can't offer a solution but I can share my experience.  About 18 months ago I tried to get the ADS compiler to do something sensible with the __packed qualifier but was unsuccessful.  Ultimately, I abandoned the use of the __packed qualifier and modified the my ethernet driver to ensure that the IP header is 32-bit word aligned.
 
There have been several discussions about this problem and related problems.  You may find some help in the mailing list archives.
 
Regards,
Robert Brown
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of 梦 程
Sent: September 1, 2005 9:25 PM
To: [email protected]
Subject: [lwip-users] '__packed' problem with ADS 1.2

Hi
When I compile the LwIP 1.1 with the ADS 1.2, the compiler show some error :
 
'=' implicit cast of pointer loses '__packed' qualifier
 
it maked by code like : seg->p->payload = seg->tcphdr;
 
this is my define about pack:
#define PACK_STRUCT_FIELD(x) x//; #pragma STRUCT_ALIGN(x,1)
#define PACK_STRUCT_STRUCT
#define PACK_STRUCT_BEGIN __packed
#define PACK_STRUCT_END
 
any body an solution?
 
 thx
 ChengMeng



DO YOU YAHOO!?
雅虎免费G邮箱-No.1的防毒防垃圾超大邮箱
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to