ConOpSys V2970  P004.07
ANVILEX control operating system
DHCPv4
IP » IPv4
Collaboration diagram for DHCPv4:

DHCP (IPv4) related functions This is a DHCP client for the lwIP TCP/IP stack. It aims to conform with RFC 2131 and RFC 2132.

Todo:
:
  • Support for interfaces other than Ethernet (SLIP, PPP, ...)

Options: DHCP_COARSE_TIMER_SECS (recommended 60 which is a minute) DHCP_FINE_TIMER_MSECS (recommended 500 which equals TCP coarse timer)

dhcp_start() starts a DHCP client instance which configures the interface by obtaining an IP address lease and maintaining it.

Use dhcp_release() to end the lease and use dhcp_stop() to remove the DHCP client.

See also
LWIP_HOOK_DHCP_APPEND_OPTIONS
LWIP_HOOK_DHCP_PARSE_OPTION
netifapi_dhcp4