1.1.19.11 WDRV_WINC_NetIfIPAddrSet
C
WDRV_WINC_STATUS WDRV_WINC_NetIfIPAddrSet ( DRV_HANDLE handle, WDRV_WINC_NETIF_IDX ifIdx, WDRV_WINC_IP_ADDRESS_TYPE type, WDRV_WINC_IP_MULTI_ADDRESS *pAddr, unsigned int scope )
Description
Defines the network IP address and scope of an interface.
Precondition
WDRV_WINC_Initialize
must have been called.
WDRV_WINC_Open
must have been called to obtain a valid handle.
Parameters
Parameters | Description |
---|---|
handle | Client handle obtained by a call to WDRV_WINC_Open . |
ifIdx | Interface index. |
type | IP address type, either IPv4 or IPv6. |
pAddr | Pointer to IP address to set. |
scope | Scope of network for IP address. |
Returns
WDRV_WINC_STATUS_OK - IP address set.
WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.
WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.
WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.
Remarks
None.