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
Members | Description |
---|---|
TCPIP_DHCPS_RES_OK | initialization/operation successful |
TCPIP_DHCPS_RES_NO_INIT_DATA | missing initialization data |
TCPIP_DHCPS_RES_IF_CONFIG_ERR | interface configuration number error |
TCPIP_DHCPS_RES_NOT_AVAILABLE | DHCP service does not support the functionality |
TCPIP_DHCPS_RES_IF_REPEAT_ERR | same interface specified twice |
TCPIP_DHCPS_RES_LEASE_PARAM_E | wrong lease entries or lease duration |
TCPIP_DHCPS_RES_PREFIX_LEN_ER | invalid prefix length |
TCPIP_DHCPS_RES_INVALID_ADDRE | invalid IP address supplied |
TCPIP_DHCPS_RES_NULL_ADDRESS | server or start IP address are NULL |
TCPIP_DHCPS_RES_NOT_ENOUGH_LE | not enough leases in the address range |
TCPIP_DHCPS_RES_SUBNET_ERR | server address not in the same subnet with the start IP address |
TCPIP_DHCPS_RES_OPTION_ERR | unsupported/unknown client option in the configuration |
TCPIP_DHCPS_RES_T1_T2_ERR | bad T2, T1 values, T2 <= T1 |
TCPIP_DHCPS_RES_ALLOC_ERR | memory allocation error |
TCPIP_DHCPS_RES_SIGNAL_ERR | could not register signal handler |
TCPIP_DHCPS_RES_SKT_CREATE_ER | could not open the socket |
TCPIP_DHCPS_RES_SKT_SIGNAL_ER | could not register socket signal handler |
TCPIP_DHCPS_RES_SKT_OPTION_ER | could not get/set options for the socket |
TCPIP_DHCPS_RES_ACCESS_LOCKED | DHCP DB locked by another thread |
TCPIP_DHCPS_RES_INVALID_IF | invalid interface specified |
TCPIP_DHCPS_RES_INVALID_INDEX | invalid lease index specified |
TCPIP_DHCPS_RES_UNUSED_INDEX | no such entry exists/is populated |
TCPIP_DHCPS_RES_PARAM_ERROR | a bad parameter was supplied |
TCPIP_DHCPS_RES_NO_LEASE | no such lease exists |
TCPIP_DHCPS_RES_DB_FULL | another lease could not be added, the DB (cache) is full |
TCPIP_DHCPS_RES_STATE_ERROR | a bad state was specified when adding a lease |
TCPIP_DHCPS_RES_SERVICE_START_ERROR | DHCP service could not be started |
TCPIP_DHCPS_RES_SERVICE_STOP_ERROR | DHCP service could not be stopped |
TCPIP_DHCPS_RES_SERVICE_ERROR | DHCP service internal error; Should not happen |