IPRouteDeleteGateway
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long IPRouteDeleteGateway( dword dest, dword mask ); // form 1long IPRouteDeleteGateway( byte dest[], dword prefix ); // form 2long IPRouteDeleteGateway(IP_Address destination, dword prefix ); // form 3
Description
With this function, it is possible to delete a gateway route from the routing table in the TCP/IP stack. Depending on the given mask (IPv4) or prefix (IPv6), a route to a single host or to a network is deleted.Parameters
- destination: The IPv4 or IPv6 destination address of the route.
- mask: Mask for the given IPv4 address.
- prefix: Prefix for the given IPv6 destination address.
Return Values
- 0: The function completed successfully.
- 1: The function is not supported on the selected TCP/IP stack.
- WSA_INVALID_PARAMETER (87): Invalid parameter given.
- SOCKET_ERROR (-1): The function failed. Call IpGetLastError to get a more specific error code.