tf6GetAddrLifetimes

Jump to: navigation, search

Table of Contents >> IPv6 Programmer's Reference


#include <trsocket.h>


int tf6GetAddrLifetimes (
ttUserInterface interfaceHandle,
struct sockaddr_storage * ipv6AddrPtr,
ttUser32BitPtr validLifetimePtr,
ttUser32BitPtr prefLifetimePtr
);


Function Description

This function retrieves the valid and preferred lifetimes for a given address.


Note Note: The preferred lifetime is always returned as 0 if TM_6_USE_PREFIX_DISCOVERY is not defined.

Parameters

  • interfaceHandle
    Interface handle corresponding to the given IPv6 address.
  • ipv6AddrPtr
    Pointer to the IPv6 address.
  • validLifetimePtr
    Pointer to a ttUser32Bit used to store the valid lifetime.
  • prefLifetimePtr
    Pointer to a ttUser32Bit used to store the preferred lifetime.


Returns

  • TM_ENOERROR
    Success
  • TM_EINVAL
    One of the following:
  • TM_EAFNOSUPPORT
    The address pointed to by ipv6AddrPtr is not an IPv6 address, or it is a IPv4-Mapped IPv6 address
  • TM_ENOENT
    The IPv6 address is not configured on this interface


Table of Contents >> IPv6 Programmer's Reference