tfSetPppPeerIpAddress

Jump to: navigation, search

Table of Contents >> Optional Protocols >> PPP Interface

Note Note: The content on this page has been deprecated.
For the new content, please see tfNgSetPt2PtPeerIpAddress().


#include <trsocket.h>


int tfSetPppPeerIpAddress (
ttUserInterface interfaceHandle,
ttUserIpAddress ifIpAddress
);


Function Description

This function is used to set a default remote PPP/SLIP IP address. This IP address will be used as the default remote point to point IP address, in case no remote IP address is negotiated with PPP (see tfPppSetOption()), or for SLIP. If no IP address is set with this function, (and no IP address is negotiated with the remote PPP for PPP), then the local IP address + 1 will be used as the default IP address for the remote PPP (or SLIP) for routing purposes (see tfGetPppPeerIpAddress()). tfSetPppPeerIpAddress() can only be called between tfAddInterface() (or tfCloseInterface()) and tfOpenInterface().


Parameters

  • interfaceHandle
    The interface to update the peer's IP address on.
  • ifIpAddress
    The IP address to use for routing purposes for the remote PPP system.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid parameter or the device does not support PPP.
  • TM_EISCONN
    The PPP connection is already established.


Table of Contents >> Optional Protocols >> PPP Interface