tfNatConfigDynamic

Jump to: navigation, search

Table of Contents >> Optional Protocols >> NAT


#include <trsocket.h>


int tfNatConfigDynamic (
ttUserInterface interfaceHandle,
ttUserIpAddress ipPublic
);


Function Description

This function allows automatic temporary association of public IP addesses with private IP addresses. These associations will expire after TM_NTRTTL_DYNAMIC seconds of no traffic. This function may be called multiple times on a public NAT interface with different public IP addresses. Later calls will specify the most used public IP addresses. The user should call this after tfNatConfigStatic() if it is to be called. Otherwise the statically assigned private system may commandeer a dynamic IP address. This is not harmful, just unlikely to be useful.


Parameters

  • interfaceHandle
    The interface handle of the public NAT device on which to create a dynamic association.
  • ipPublic
    The public IP address in network byte order.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    There is IP/port/protocol conflict. For more information, please enable TM_ERROR_CHECKING.
  • TM_ENOMEM
    Insufficient memory to complete the operation, or too many triggers already added.


Table of Contents >> Optional Protocols >> NAT