From 2382792792d134d55fe2550c09d1a576c30474b0 Mon Sep 17 00:00:00 2001 From: likewise Date: Mon, 11 Nov 2002 15:36:31 +0000 Subject: [PATCH] Fixes all issues that showed up after the first commit. --- src/include/lwip/dhcp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/dhcp.h b/src/include/lwip/dhcp.h index 745592f6..11c1e4f3 100644 --- a/src/include/lwip/dhcp.h +++ b/src/include/lwip/dhcp.h @@ -43,7 +43,12 @@ struct dhcp_state u32_t offered_t2_rebind; // recommended rebind time (usually 66% of lease period) }; -// always present fields of any DHCP message +/* MUST be compiled with "pack structs" or equivalent! */ +#ifdef PACK_STRUCT_USE_INCLUDES +# include "arch/bpstruct.h" +#endif +PACK_STRUCT_BEGIN +// minimum set of fields of any DHCP message struct dhcp_msg { u8_t op; @@ -72,6 +77,10 @@ struct dhcp_msg #endif u8_t options[DHCP_OPTIONS_LEN]; }; +PACK_STRUCT_END +#ifdef PACK_STRUCT_USE_INCLUDES +# include "arch/epstruct.h" +#endif // initialize DHCP client void dhcp_init(void);