tf6GetDefaultGatewayTunnel

Jump to: navigation, search

Table of Contents >> IPv6 Programmer's Reference


#include <trsocket.h>


int tf6GetDefaultGatewayTunnel (struct sockaddr_storage * endpointIpAddrPtr);


Function Description

This function only supports IPv6. This function gets the endpoint IP address of the default gateway tunnel into the user variable pointed to by endpointIpAddrPtr. If there is no default gateway tunnel configured, then this function returns TM_ENOENT.


Parameters

  • endpointIpAddrPtr
    When this function returns TM_ENOERROR, then the memory that endpointIpAddrPtr points to is set to the tunnel endpoint IP address, which is the IPv4 address of the IPv6 router. The memory that this points to must be allocated by the caller, i.e. a local variable in the caller's address space.


Returns

  • TM_ENOERROR
    Default gateway tunnel was found – IP address copied into endpointIpAddrPtr.
  • TM_EINVAL
    endpointIpAddrPtr is NULL.
  • TM_ENOENT
    Default gateway tunnel not found.


Table of Contents >> IPv6 Programmer's Reference