dhcp.c File Reference


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)

Detailed Description

Dynamic Host Configuration Protocol client

Function Documentation

void dhcp_arp_reply ( struct netif netif,
struct ip_addr *  addr 
)

Match an ARP reply with the offered IP address.

Parameters:
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.

Parameters:
netif The lwIP network interface

err_t dhcp_release ( struct netif netif  ) 

Release a DHCP lease.

Parameters:
netif network interface which must release its lease

err_t dhcp_renew ( struct netif netif  ) 

Renew an existing DHCP lease at the involved DHCP server.

Parameters:
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.

Parameters:
netif The lwIP network interface
Returns:
lwIP error code
  • ERR_OK - No error
  • ERR_MEM - Out of memory

void dhcp_stop ( struct netif netif  ) 

Remove the DHCP client from the interface.

Parameters:
netif The network interface to stop DHCP on


Generated on Sun Mar 23 19:22:46 2008 for lwIP 1.3.0 by  doxygen 1.5.4