tfDisablePathMtuDisc

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>



int tfDisablePathMtuDisc (
ttUserInterface interfaceHandle,
ttUserIpAddress destIpAddress
);
Conditional parameter. See details in Parameters below.


Function Description

This function is used to disable path MTU discovery for a given route. If pathMtu is zero, or bigger than the outgoing device IP MTU, then we will default the route IP MTU to the outgoing device IP MTU; otherwise we will set the route IP MTU with the passed parameter value.


Parameters


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    destIpAddress is invalid.
  • TM_EPERM
    Route is direct. No path MTU discovery is ever going to take place.
  • TM_EHOSTUNREACH
    No route to destination IP address.
  • TM_ENOBUFS
    Not enough memory to allocate a new routing entry.


Table of Contents >> Programmer's Reference