The Pedigree Project  0.1
Macros
+ Collaboration diagram for DHCP:

Macros

#define DHCP_DOES_ARP_CHECK   ((LWIP_DHCP) && (LWIP_ARP))
 
#define LWIP_DHCP_CHECK_LINK_UP   0
 
#define LWIP_DHCP_BOOTP_FILE   0
 
#define LWIP_DHCP_GET_NTP_SRV   0
 
#define LWIP_DHCP_MAX_NTP_SERVERS   1
 
#define LWIP_DHCP_MAX_DNS_SERVERS   DNS_MAX_SERVERS
 

Detailed Description

Macro Definition Documentation

#define DHCP_DOES_ARP_CHECK   ((LWIP_DHCP) && (LWIP_ARP))

LWIP_DHCP==1: Enable DHCP module. DHCP_DOES_ARP_CHECK==1: Do an ARP check on the offered address.

Definition at line 869 of file opt.h.

#define LWIP_DHCP_BOOTP_FILE   0

LWIP_DHCP_BOOTP_FILE==1: Store offered_si_addr and boot_file_name.

Definition at line 886 of file opt.h.

#define LWIP_DHCP_CHECK_LINK_UP   0

LWIP_DHCP_CHECK_LINK_UP==1: dhcp_start() only really starts if the netif has NETIF_FLAG_LINK_UP set in its flags. As this is only an optimization and netif drivers might not set this flag, the default is off. If enabled, netif_set_link_up() must be called to continue dhcp starting.

Definition at line 879 of file opt.h.

#define LWIP_DHCP_GET_NTP_SRV   0

LWIP_DHCP_GETS_NTP==1: Request NTP servers with discover/select. For each response packet, an callback is called, which has to be provided by the port: void dhcp_set_ntp_servers(u8_t num_ntp_servers, ip_addr_t* ntp_server_addrs);

Definition at line 895 of file opt.h.

#define LWIP_DHCP_MAX_DNS_SERVERS   DNS_MAX_SERVERS

LWIP_DHCP_MAX_DNS_SERVERS > 0: Request DNS servers with discover/select. DHCP servers received in the response are passed to DNS via dns_setserver() (up to the maximum limit defined here).

Definition at line 911 of file opt.h.

#define LWIP_DHCP_MAX_NTP_SERVERS   1

The maximum of NTP servers requested

Definition at line 902 of file opt.h.