struct etharp_hdr: split _hwlen_protolen into two u8_t's to prevent using htons on little-endian platforms

This commit is contained in:
goldsimon
2010-05-16 16:26:12 +00:00
parent dae247809b
commit 25f33c8444
2 changed files with 8 additions and 11 deletions

View File

@@ -115,7 +115,8 @@ PACK_STRUCT_BEGIN
struct etharp_hdr {
PACK_STRUCT_FIELD(u16_t hwtype);
PACK_STRUCT_FIELD(u16_t proto);
PACK_STRUCT_FIELD(u16_t _hwlen_protolen);
PACK_STRUCT_FIELD(u8_t hwlen);
PACK_STRUCT_FIELD(u8_t protolen);
PACK_STRUCT_FIELD(u16_t opcode);
PACK_STRUCT_FIELD(struct eth_addr shwaddr);
PACK_STRUCT_FIELD(struct ip_addr2 sipaddr);