Hi: I defined the following structure:
struct ethernet_hdr { char destination[6]; char source[6]; unsigned short protocol; };
"typically an embedded compiler will support a pragma or option of some sort to declare a structure as 'packed'" In fact, I think just about any compiler will support this - Borland C++ Builder certainly does, and I think MSVC does too. There's no avoiding it, though - your're going to have to read the Manual to find out for sure!!