Embedded TCP/IP stack  4.7.0

◆ fnet_dhcp_srv_init()

fnet_dhcp_srv_desc_t fnet_dhcp_srv_init ( fnet_dhcp_srv_params_t params)

Initializes the DHCPv4 server service.

Parameters
paramsInitialization parameters defined by fnet_dhcp_srv_params_t.
Returns
This function returns:
  • DHCPv4 server descriptor if no error occurs.
  • 0 if an error occurs.
See also
fnet_dhcp_srv_release()

This function initializes the DHCPv4 server service. It allocates all resources needed and registers the DHCPv4 server in the service polling list.
After the initialization, the user application should call the main polling function fnet_service_poll() periodically to run the DHCPv4 server service in the background.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net