lwIP
2.0.2
Lightweight IP stack
|
Macros | |
#define | DHCP_COARSE_TIMER_SECS 60 |
#define | DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS * 1000UL) |
#define | DHCP_FINE_TIMER_MSECS 500 |
#define | dhcp_remove_struct(netif) do { (netif)->dhcp = NULL; } while(0) |
Functions | |
void | dhcp_set_struct (struct netif *netif, struct dhcp *dhcp) |
void | dhcp_cleanup (struct netif *netif) |
err_t | dhcp_start (struct netif *netif) |
err_t | dhcp_renew (struct netif *netif) |
err_t | dhcp_release (struct netif *netif) |
void | dhcp_stop (struct netif *netif) |
void | dhcp_inform (struct netif *netif) |
void | dhcp_network_changed (struct netif *netif) |
void | dhcp_arp_reply (struct netif *netif, const ip4_addr_t *addr) |
u8_t | dhcp_supplied_address (const struct netif *netif) |
void | dhcp_coarse_tmr (void) |
void | dhcp_fine_tmr (void) |
DHCP client API
#define DHCP_COARSE_TIMER_MSECS (DHCP_COARSE_TIMER_SECS * 1000UL) |
period (in milliseconds) of the application calling dhcp_coarse_tmr()
#define DHCP_COARSE_TIMER_SECS 60 |
period (in seconds) of the application calling dhcp_coarse_tmr()
#define DHCP_FINE_TIMER_MSECS 500 |
period (in milliseconds) of the application calling dhcp_fine_tmr()
Remove a struct dhcp previously set to the netif using dhcp_set_struct()
void dhcp_arp_reply | ( | struct netif * | netif, |
const ip4_addr_t * | addr | ||
) |
Match an ARP reply with the offered IP address: check whether the offered IP address is not in use using ARP
netif | the network interface on which the reply was received |
addr | The IP address we received a reply from |
void dhcp_coarse_tmr | ( | void | ) |
The DHCP timer that checks for lease renewal/rebind timeouts. Must be called once a minute (see DHCP_COARSE_TIMER_SECS).
void dhcp_fine_tmr | ( | void | ) |
DHCP transaction timeout handling (this function must be called every 500ms, see DHCP_FINE_TIMER_MSECS).
A DHCP server is expected to respond within a short period of time. This timer checks whether an outstanding DHCP request is timed out.
void dhcp_network_changed | ( | struct netif * | netif | ) |
Handle a possible change in the network configuration.
This enters the REBOOTING state to verify that the currently bound address is still valid.