uint32_t EI_API_ADP_setIpConfig | ( | T * | pAdp_p, |
bool | dhcp_p, | ||
uint32_t | ipAddr_p, | ||
uint32_t | netwMask_p, | ||
uint32_t | gateway_p, | ||
uint32_t | nameServer1_p, | ||
uint32_t | nameServer2_p, | ||
char * | pDomainName_p, | ||
bool | applyChanges_p | ||
) |
Set the IP configuration of the selected adapter (Instance Attribute ID: 3 and 5).
Function that sets the IP configuration of the adapter selected by parameter pAdp_p
. The parameter dhcp_p
corresponds to Instance Attribute 3 and is used to enable or disable IP configuration via the dynamic host configuration protocol.
[in] | pAdp_p | Pointer to the adapter. |
[in] | dhcp_p | Enable or disable DHCP |
[in] | ipAddr_p | New IP address. |
[in] | netwMask_p | New network mask. |
[in] | gateway_p | New gateway address. |
[in] | nameServer1_p | New primary name server address. |
[in] | nameServer2_p | New secondary name server address. |
[in] | pDomainName_p | Pointer to new domain name. |
[in] | applyChanges_p | Rewrite configuration files and applying of changes. |
EI_API_ADP_eERR_OK | Success. |
EI_API_ADP_eERR_GENERAL | General error. |
EI_API_ADP_eERR_TCPIP_IPADDR_VALUE_INVALID | IP address value is invalid or reserved. |
EI_API_ADP_eERR_TCPIP_GATEWAY_VALUE_INVALID | Gateway address value is invalid or reserved. |
EI_API_ADP_eERR_TCPIP_DOMAINNAME_NULL_POINTER | Domain name can't to be referenced with NULL pointer. |
EI_API_ADP_eERR_TCPIP_DOMAINNAME_LENGTH | Domain name length is restricted to 48 bytes. |