tfGetPppDnsIpAddress

Jump to: navigation, search

Table of Contents >> Optional Protocols >> PPP Interface


#include <trsocket.h>


int tfGetPppDnsIpAddress (
ttUserInterface interfaceHandle,
ttUserIpAddress * dnsIpAddressPtr,
int flag
);


Function Description

This function is used to return the DNS Addresses as negotiated by the remote PPP server. This function can only be used with PPP devices. If no DNS address is negotiated, the IP address returned will be 0.0.0.0.


Parameters

  • interfaceHandle
    The interface to get the DNS IP address from.
  • dnsIpAddressPtr
    The pointer to the buffer where the DNS IP address will be stored.
  • flag
    Either TM_DNS_PRIMARY or TM_DNS_SECONDARY.


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 >> Optional Protocols >> PPP Interface