Functions | |
void | dhcp_coarse_tmr () |
void | dhcp_fine_tmr () |
err_t | dhcp_start (struct netif *netif) |
void | dhcp_inform (struct netif *netif) |
void | dhcp_arp_reply (struct netif *netif, struct ip_addr *addr) |
err_t | dhcp_renew (struct netif *netif) |
err_t | dhcp_release (struct netif *netif) |
void | dhcp_stop (struct netif *netif) |
void dhcp_arp_reply | ( | struct netif * | netif, | |
struct ip_addr * | addr | |||
) |
Match an ARP reply with the offered IP address.
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.
void dhcp_fine_tmr | ( | void | ) |
DHCP transaction timeout handling
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_inform | ( | struct netif * | netif | ) |
Inform a DHCP server of our manual configuration.
This informs DHCP servers of our fixed IP address configuration by sending an INFORM message. It does not involve DHCP address configuration, it is just here to be nice to the network.
netif | The lwIP network interface |
err_t dhcp_release | ( | struct netif * | netif | ) |
err_t dhcp_renew | ( | struct netif * | netif | ) |
Renew an existing DHCP lease at the involved DHCP server.
netif | network interface which must renew its lease |
err_t dhcp_start | ( | struct netif * | netif | ) |
Start DHCP negotiation for a network interface.
If no DHCP client instance was attached to this interface, a new client is created first. If a DHCP client instance was already present, it restarts negotiation.
netif | The lwIP network interface |
void dhcp_stop | ( | struct netif * | netif | ) |