tfDelStaticRoute
Table of Contents >> Programmer's Reference
| The content on this page has been deprecated. | |
| For the new content, please see tfNgDelStaticRoute(). |
| #include <trsocket.h> |
| int tfDelStaticRoute | ( |
| ttUserInterface interfaceHandle, | |
| ttUserIpAddress destIpAddress | |
| ); | |
| Conditional parameter. See details in Parameters below. | |
Function Description
This function is used to delete a route from the interface.
Parameters
- interfaceHandle
- Interface ID as returned by tfAddInterface(). NOTE: This parameter is conditional and only present when TM_USE_STRONG_ESL is defined at compile time. For more information, please see Appendix C: Strong End System Model / Weak End System Model.
- destIpAddress
- The IP address to remove the route for.
- destNetMask
- The netmask for the route.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- One of the parameters is invalid.
- TM_ENOENT
- No routing entry for this route was found in the routing table.
- TM_EPERM
- Cannot delete an ARP entry with tfDelStaticRoute().