TCPIP_DHCPS_RES Enumeration

C

typedef enum
{
TCPIP_DHCPS_RES_OK                 = 0,
// errors
TCPIP_DHCPS_RES_NO_INIT_DATA       = -1,
TCPIP_DHCPS_RES_IF_CONFIG_ERR      = -2,
TCPIP_DHCPS_RES_NOT_AVAILABLE      = -3,
TCPIP_DHCPS_RES_IF_REPEAT_ERR      = -4,
TCPIP_DHCPS_RES_LEASE_PARAM_ERR    = -5,
TCPIP_DHCPS_RES_PREFIX_LEN_ERR     = -6,
TCPIP_DHCPS_RES_INVALID_ADDRESS    = -7,
TCPIP_DHCPS_RES_NULL_ADDRESS       = -8,
TCPIP_DHCPS_RES_NOT_ENOUGH_LEASES  = -9,
TCPIP_DHCPS_RES_SUBNET_ERR         = -10,
TCPIP_DHCPS_RES_OPTION_ERR         = -11,
TCPIP_DHCPS_RES_T1_T2_ERR          = -12,
TCPIP_DHCPS_RES_ALLOC_ERR          = -13,
TCPIP_DHCPS_RES_SIGNAL_ERR         = -14,
TCPIP_DHCPS_RES_SKT_CREATE_ERR     = -15,
TCPIP_DHCPS_RES_SKT_SIGNAL_ERR     = -16,
TCPIP_DHCPS_RES_SKT_OPTION_ERR     = -17,
TCPIP_DHCPS_RES_ACCESS_LOCKED      = -18,
TCPIP_DHCPS_RES_INVALID_IF         = -19,
TCPIP_DHCPS_RES_INVALID_INDEX      = -20,
TCPIP_DHCPS_RES_UNUSED_INDEX       = -21,
TCPIP_DHCPS_RES_PARAM_ERROR        = -22,
TCPIP_DHCPS_RES_NO_LEASE           = -23,
TCPIP_DHCPS_RES_DB_FULL            = -24,
TCPIP_DHCPS_RES_STATE_ERROR        = -25,
TCPIP_DHCPS_RES_SERVICE_START_ERROR = -26,
TCPIP_DHCPS_RES_SERVICE_STOP_ERROR  = -27,
TCPIP_DHCPS_RES_SERVICE_ERROR      = -77,
}TCPIP_DHCPS_RES;

Description

Enumeration: TCPIP_DHCPS_RES

DHCPs operation result

During the initialization process the DHCPs module will print an error code if the initialization failed. This is a quick pointer to what went wrong in the initialization process.

Error codes will be also returned by the DHCP server API.

Members

MembersDescription
TCPIP_DHCPS_RES_OKinitialization/operation successful
TCPIP_DHCPS_RES_NO_INIT_DATAmissing initialization data
TCPIP_DHCPS_RES_IF_CONFIG_ERRinterface configuration number error
TCPIP_DHCPS_RES_NOT_AVAILABLEDHCP service does not support the functionality
TCPIP_DHCPS_RES_IF_REPEAT_ERRsame interface specified twice
TCPIP_DHCPS_RES_LEASE_PARAM_Ewrong lease entries or lease duration
TCPIP_DHCPS_RES_PREFIX_LEN_ERinvalid prefix length
TCPIP_DHCPS_RES_INVALID_ADDREinvalid IP address supplied
TCPIP_DHCPS_RES_NULL_ADDRESSserver or start IP address are NULL
TCPIP_DHCPS_RES_NOT_ENOUGH_LEnot enough leases in the address range
TCPIP_DHCPS_RES_SUBNET_ERRserver address not in the same subnet with the start IP address
TCPIP_DHCPS_RES_OPTION_ERRunsupported/unknown client option in the configuration
TCPIP_DHCPS_RES_T1_T2_ERRbad T2, T1 values, T2 <= T1
TCPIP_DHCPS_RES_ALLOC_ERRmemory allocation error
TCPIP_DHCPS_RES_SIGNAL_ERRcould not register signal handler
TCPIP_DHCPS_RES_SKT_CREATE_ERcould not open the socket
TCPIP_DHCPS_RES_SKT_SIGNAL_ERcould not register socket signal handler
TCPIP_DHCPS_RES_SKT_OPTION_ERcould not get/set options for the socket
TCPIP_DHCPS_RES_ACCESS_LOCKEDDHCP DB locked by another thread
TCPIP_DHCPS_RES_INVALID_IFinvalid interface specified
TCPIP_DHCPS_RES_INVALID_INDEXinvalid lease index specified
TCPIP_DHCPS_RES_UNUSED_INDEXno such entry exists/is populated
TCPIP_DHCPS_RES_PARAM_ERRORa bad parameter was supplied
TCPIP_DHCPS_RES_NO_LEASEno such lease exists
TCPIP_DHCPS_RES_DB_FULLanother lease could not be added, the DB (cache) is full
TCPIP_DHCPS_RES_STATE_ERRORa bad state was specified when adding a lease
TCPIP_DHCPS_RES_SERVICE_START_ERRORDHCP service could not be started
TCPIP_DHCPS_RES_SERVICE_STOP_ERRORDHCP service could not be stopped
TCPIP_DHCPS_RES_SERVICE_ERRORDHCP service internal error; Should not happen