Jifl wrote: > > This implies to me that your compiler is not packing the structure. Are > the structure packing macros (PACK_STRUCT_BEGIN/STRUCT/END) implemented in > your cc.h? And correct for your compiler? Or you may need to provide > arch/bpstruct.h and arch/epstruct.h and define PACK_STRUCT_USE_INCLUDES, > depending on how structure packing is implemented in your compiler.
Unfortunately, TI's compiler does not support any kind of structure packing for their C6000 DSP's (no #pragma pack, or anything similar). This is always a bit of a headache when interfacing to other devices, but fortunately hasn't caused us too many problems with lwIP. In fact, the dns.c file is one of the few we have to modify (there are also overlays of 32-bit structures made on non-32-bit aligned arrays in dns.c, which don't work for us). I didn't realize the "sizeof" reporting 12 bytes instead of 10 was unique to our environment, so I thought I'd bring it up. Thanks for the input! John Keil _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
