tfNatConfig

Jump to: navigation, search

Table of Contents >> Optional Protocols >> NAT


#include <trsocket.h>


int tfNatConfig (ttUserInterface interfaceHandle);


Function Description

This function is used to identify a stack device as a public NAT interface. The user should call this function exactly once per public NAT interface and before any other NAT functions are called for this interface. If the stack ever shuts down orderly, call tfNatUnConfig() for each interface where tfNatConfig() returned TM_ENOERROR.


Parameters

  • interfaceHandle
    The interface handle of the public NAT device.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    The 'interfaceHandle' is invalid.


Table of Contents >> Optional Protocols >> NAT