# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct icmp_echo_hdr {\r
PACK_STRUCT_FIELD(u16_t _type_code);\r
PACK_STRUCT_FIELD(u16_t chksum);\r
PACK_STRUCT_END\r
\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct icmp_dur_hdr {\r
PACK_STRUCT_FIELD(u16_t _type_code);\r
PACK_STRUCT_FIELD(u16_t chksum);\r
PACK_STRUCT_END\r
\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct icmp_te_hdr {\r
PACK_STRUCT_FIELD(u16_t _type_code);\r
PACK_STRUCT_FIELD(u16_t chksum);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct igmp_msg {\r
PACK_STRUCT_FIELD(u8_t igmp_msgtype);\r
PACK_STRUCT_FIELD(u8_t igmp_maxresp);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct ip_hdr {\r
/* version / header length / type of service */\r
PACK_STRUCT_FIELD(u16_t _v_hl_tos);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct ip_addr {\r
PACK_STRUCT_FIELD(u32_t addr);\r
} PACK_STRUCT_STRUCT;\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct ip_addr2 {\r
PACK_STRUCT_FIELD(u16_t addrw[2]);\r
} PACK_STRUCT_STRUCT;\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct ip_addr {\r
PACK_STRUCT_FIELD(u32_t addr[4]);\r
} PACK_STRUCT_STRUCT;\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct ip_addr2 {\r
PACK_STRUCT_FIELD(u16_t addrw[2]);\r
} PACK_STRUCT_STRUCT;\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
/** minimum set of fields of any DHCP message */\r
struct dhcp_msg\r
{\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct tcp_hdr {\r
PACK_STRUCT_FIELD(u16_t src);\r
PACK_STRUCT_FIELD(u16_t dest);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct udp_hdr {\r
PACK_STRUCT_FIELD(u16_t src);\r
PACK_STRUCT_FIELD(u16_t dest); /* src/dest UDP ports */\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct eth_addr {\r
PACK_STRUCT_FIELD(u8_t addr[ETHARP_HWADDR_LEN]);\r
} PACK_STRUCT_STRUCT;\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct eth_hdr {\r
#if ETH_PAD_SIZE\r
PACK_STRUCT_FIELD(u8_t padding[ETH_PAD_SIZE]);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
/** the ARP message */\r
struct etharp_hdr {\r
PACK_STRUCT_FIELD(struct eth_hdr ethhdr);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct ethip_hdr {\r
PACK_STRUCT_FIELD(struct eth_hdr eth);\r
PACK_STRUCT_FIELD(struct ip_hdr ip);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct pppoehdr {\r
PACK_STRUCT_FIELD(u8_t vertype);\r
PACK_STRUCT_FIELD(u8_t code);\r
# include "arch/bpstruct.h"\r
#endif\r
PACK_STRUCT_BEGIN\r
+#if (defined(__MWERKS__) || defined(__CWCC__))\r
+ #pragma options align= packed\r
+#endif\r
struct pppoetag {\r
PACK_STRUCT_FIELD(u16_t tag);\r
PACK_STRUCT_FIELD(u16_t len);\r