TCPIP_DHCPS_Enable Function

C

TCPIP_DHCPS_RES TCPIP_DHCPS_Enable(TCPIP_NET_HANDLE hNet)

Description

Enables the DHCP Server for the specified interface.

This function enables the DHCP Server for the specified interface, if it is disabled. If it is already enabled, no action is taken.

Precondition

The DHCP Server module must be initialized.

Parameters

ParametersDescription
hNetInterface on which to enable the DHCP Server

Returns

- TCPIP_DHCPS_RES_OK - the call is successful and the DHCP server has been enabled on the selected interface

- < 0 - An error code if DHCP server could not be started, wrong interface, etc.

- TCPIP_DHCPS_RES_ACCESS_LOCKED - if access to the DHCP server is locked by another thread and the the call can be retried. Multi-threaded access is enabled (build symbol TCPIP_DHCPS_MULTI_THREADED_ACCESS != 0)