1.1.12.3 WDRV_WINC_NetIfIPRouteSet

Function

WDRV_WINC_STATUS WDRV_WINC_NetIfIPRouteSet
(
DRV_HANDLE handle,
WDRV_WINC_NETIF_IDX ifIdx,
WDRV_WINC_IP_ADDRESS_TYPE type,
WDRV_WINC_IP_MULTI_ADDRESS *pNetwork,
int scope,
WDRV_WINC_IP_MULTI_ADDRESS *pDest
)

Summary

Set a route on a network interface.

Description

Defines a route to a network 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.

pNetwork - Pointer to network IP address.

scope - Scope of network for network IP address.

pDest - Pointer to IP address of destination.

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

Currently this only supports setting the default gateway for the interface.