36 |
struct dhcp_msg *msg_out; /* outgoing msg */ |
struct dhcp_msg *msg_out; /* outgoing msg */ |
37 |
u16_t options_out_len; /* outgoing msg options length */ |
u16_t options_out_len; /* outgoing msg options length */ |
38 |
u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */ |
u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */ |
39 |
u16_t t1_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */ |
u16_t t1_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */ |
40 |
u16_t t2_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */ |
u16_t t2_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */ |
41 |
struct ip_addr server_ip_addr; /* dhcp server address that offered this lease */ |
struct ip_addr server_ip_addr; /* dhcp server address that offered this lease */ |
42 |
struct ip_addr offered_ip_addr; |
struct ip_addr offered_ip_addr; |
43 |
struct ip_addr offered_sn_mask; |
struct ip_addr offered_sn_mask; |
45 |
struct ip_addr offered_bc_addr; |
struct ip_addr offered_bc_addr; |
46 |
u32_t offered_t0_lease; /* lease period (in seconds) */ |
u32_t offered_t0_lease; /* lease period (in seconds) */ |
47 |
u32_t offered_t1_renew; /* recommended renew time (usually 50% of lease period) */ |
u32_t offered_t1_renew; /* recommended renew time (usually 50% of lease period) */ |
48 |
u32_t offered_t2_rebind; /* recommended rebind time (usually 66% of lease period) */ |
u32_t offered_t2_rebind; /* recommended rebind time (usually 66% of lease period) */ |
49 |
/** Patch #1308 |
/** Patch #1308 |
50 |
* TODO: See dhcp.c "TODO"s |
* TODO: See dhcp.c "TODO"s |
51 |
*/ |
*/ |
52 |
#if 0 |
#if 0 |
53 |
struct ip_addr offered_si_addr; |
struct ip_addr offered_si_addr; |
134 |
#define DHCP_COOKIE_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN) |
#define DHCP_COOKIE_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN) |
135 |
#define DHCP_OPTIONS_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN + 4) |
#define DHCP_OPTIONS_OFS (DHCP_MSG_OFS + DHCP_MSG_LEN + 4) |
136 |
|
|
137 |
#define DHCP_CLIENT_PORT 68 |
#define DHCP_CLIENT_PORT 68 |
138 |
#define DHCP_SERVER_PORT 67 |
#define DHCP_SERVER_PORT 67 |
139 |
|
|
140 |
/** DHCP client states */ |
/** DHCP client states */ |
206 |
/** possible combinations of overloading the file and sname fields with options */ |
/** possible combinations of overloading the file and sname fields with options */ |
207 |
#define DHCP_OVERLOAD_NONE 0 |
#define DHCP_OVERLOAD_NONE 0 |
208 |
#define DHCP_OVERLOAD_FILE 1 |
#define DHCP_OVERLOAD_FILE 1 |
209 |
#define DHCP_OVERLOAD_SNAME 2 |
#define DHCP_OVERLOAD_SNAME 2 |
210 |
#define DHCP_OVERLOAD_SNAME_FILE 3 |
#define DHCP_OVERLOAD_SNAME_FILE 3 |
211 |
|
|
212 |
#endif /*__LWIP_DHCP_H__*/ |
#endif /*__LWIP_DHCP_H__*/ |