1.1.12.5 WDRV_WINC_NetIfIPAddrSet

Function

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,
int scope
)

Summary

Set the IP address of a network interface.

Description

Defines the network IP address and scope of an interface.

Precondition

WDRV_WINC_Initialize should have been called. WDRV_WINC_Open should have been called to obtain a valid handle.

Parameters

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 - Callback registered.

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.