Added includeds for bpstruct and epstruct.

Ports should update from using PACK_STRUCT_BEGIN and PACK_STRUCT_END to use these includes.
Maybe there should be an PACK_STRUCT_USE_INCLUDES ifdef around these, for ports for which PACK_STRUCT_BEGIN and PACK_STRUCT_END works nicely.
This commit is contained in:
proff_fs
2002-11-08 12:54:43 +00:00
parent e988d2ee0b
commit f1c0bbc62b
7 changed files with 27 additions and 0 deletions

View File

@@ -44,12 +44,15 @@
#include "lwip/ip_addr.h"
#include "lwip/netif.h"
#include "arch/bpstruct.h"
PACK_STRUCT_BEGIN
struct eth_addr {
PACK_STRUCT_FIELD(u8_t addr[6]);
} PACK_STRUCT_STRUCT;
PACK_STRUCT_END
#include "arch/epstruct.h"
#include "arch/bpstruct.h"
PACK_STRUCT_BEGIN
struct eth_hdr {
PACK_STRUCT_FIELD(struct eth_addr dest);
@@ -57,6 +60,7 @@ struct eth_hdr {
PACK_STRUCT_FIELD(u16_t type);
} PACK_STRUCT_STRUCT;
PACK_STRUCT_END
#include "arch/epstruct.h"
#define ARP_TMR_INTERVAL 10000