1.1.19.12 WDRV_WINC_NetIfIPRouteSet
C
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
)Description
Defines a route to a network interface.
Precondition
WDRV_WINC_Initialize must have been called.
WDRV_WINC_Open should 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. |
| 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 - Route 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
Currently this only supports setting the default gateway for the interface.
