tfNgRtDestExists

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>



int tfNgRtDestExists (
ttUserInterface interfaceHandle,
struct sockaddr_storage * sockAddrPtr
);
Conditional parameter. See details in Parameters below.


Function Description

Find out whether a route to a destination exists, given the pair destination sockaddr_storagestructure and prefix length.


Parameters


Returns

  • TM_ENOERROR
    Success.
  • TM_EHOSTUNREACH
    No route to the destination.
  • TM_EINVAL
    The interfaceHandle is invalid.


Table of Contents >> Programmer's Reference