tfNgGetPt2PtPeerIpAddress

Jump to: navigation, search

Table of Contents >> IPv6 Programmer's Reference


#include <trsocket.h>


int tfNgGetPt2PtPeerIpAddress (
ttUserInterface interfaceHandle,
struct sockaddr_storage * ifIpAddrPtr
);


Function Description

Next Generation API replaces tfGetPppPeerIpAddress().


Parameters

  • interfaceHandle
    The interface to get the peer's IP address from.
  • ifIpAddrPtr
    The pointer to the buffer where the peer's PPP IP address will be stored.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid parameter or the device does not support PPP.
  • TM_ENETDOWN
    The interface is not configured.


Table of Contents >> IPv6 Programmer's Reference