tfRtDestExists
Table of Contents >> Programmer's Reference
#include <trsocket.h> |
int tfRtDestExists | ( |
ttUserInterface interfaceHandle, | |
ttUserIpAddress destIpAddress | |
); | |
Conditional parameter. See details in Parameters below. |
Function Description
Find out whether a route to a destination exists, given the pair destination IP address and destination IP network mask.
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
- Destination IP address
- destNetMask
- Destination IP netmask
Returns
- TM_ENOERROR
- Success.
- TM_EHOSTUNREACH
- No route to the destination.