TCPIP_DHCPS_CLIENT_OPTION_CONFIG Structure

C

typedef struct
{
    TCPIP_DHCPS_CLIENT_OPTION_TYPE optType;
    union
    {
        const char* ipStr;
        uint32_t    uintVal;
        struct
        {
            uint16_t mult; 
            uint16_t div;
        };
                                            
    };
}TCPIP_DHCPS_CLIENT_OPTION_CONFIG;

Description

Structure: TCPIP_DHCPS_CLIENT_OPTION_CONFIG

DHCP server configuration of client options

DHCP server configuration of provided client options Lists the options to be presented to clients requiring an address lease

Remarks

An option is allowed to appear multiple times. For example, using TCPIP_DHCPS_CLIENT_OPTION_DNS 2 times, 2 DN servers will be communicated to the client

The maximum number of values possible for an option is dictated by: TCPIP_DHCPS_OPTION_ROUTER_VALUESTCPIP_DHCPS_OPTION_DNS_VALUESTCPIP_DHCPS_OPTION_TIME_SERVER_VALUES TCPIP_DHCPS_OPTION_NAME_SERVER_VALUES TCPIP_DHCPS_OPTION_NTP_SERVER_VALUES

Excess values will be ignored.

Members

MembersDescription
optTypeOption type
ipStra string describing the option, a valid IP address string
used for TCPIP_DHCPS_CLIENT_OPTION_ROUTER, TCPIP_DHCPS_CLIENT_OPTION_DNS, TCPIP_DHCPS_CLIENT_OPTION_TIME_SERVER,
TCPIP_DHCPS_CLIENT_OPTION_NAME_SERVER, TCPIP_DHCPS_CLIENT_OPTION_NTP_SERVER
uintVala uint32_t value
mult, divuint16_t values
used for TCPIP_DHCPS_CLIENT_OPTION_T1_RENEWAL and TCPIP_DHCPS_CLIENT_OPTION_T2_REBINDING
the T1 and T2 are obtained as percentages of lease time:
T1 = (leaseTime * mult) / div; default values are mult = 1, div = 2;
T2 = (leaseTime * mult) / div; default values are mult = 7, div = 8;
Default values are used for mult or div if any of them are 0
T2 needs to be greater than T1!