4 |
#ifndef __LWIP_DHCP_H__ |
#ifndef __LWIP_DHCP_H__ |
5 |
#define __LWIP_DHCP_H__ |
#define __LWIP_DHCP_H__ |
6 |
|
|
|
#include "udp.h" |
|
7 |
#include "lwip/opt.h" |
#include "lwip/opt.h" |
8 |
|
#include "lwip/udp.h" |
9 |
|
|
10 |
/** period (in seconds) of the application calling dhcp_coarse_tmr() */ |
/** period (in seconds) of the application calling dhcp_coarse_tmr() */ |
11 |
#define DHCP_COARSE_TIMER_SECS 60 |
#define DHCP_COARSE_TIMER_SECS 60 |
86 |
# include "arch/epstruct.h" |
# include "arch/epstruct.h" |
87 |
#endif |
#endif |
88 |
|
|
89 |
|
/* Declare here to avoid including netif.h creating a circular dependency */ |
90 |
|
struct netif; |
91 |
|
|
92 |
/** initialize DHCP client */ |
/** initialize DHCP client */ |
93 |
void dhcp_init(void); |
void dhcp_init(void); |
94 |
/** start DHCP configuration */ |
/** start DHCP configuration */ |
169 |
|
|
170 |
/** BootP options */ |
/** BootP options */ |
171 |
#define DHCP_OPTION_PAD 0 |
#define DHCP_OPTION_PAD 0 |
172 |
#define DHCP_OPTION_SUBNET_MASK 1 // RFC 2132 3.3 |
#define DHCP_OPTION_SUBNET_MASK 1 /* RFC 2132 3.3 */ |
173 |
#define DHCP_OPTION_ROUTER 3 |
#define DHCP_OPTION_ROUTER 3 |
174 |
#define DHCP_OPTION_HOSTNAME 12 |
#define DHCP_OPTION_HOSTNAME 12 |
175 |
#define DHCP_OPTION_IP_TTL 23 |
#define DHCP_OPTION_IP_TTL 23 |