tf6AddressToIpv4Mapped

Jump to: navigation, search

Table of Contents >> IPv6 Programmer's Reference


#include <trsocket.h>


int tf6AddressToIpv4Mapped (
ttUserIpAddress inIpv4Addr,
struct sockaddr_storage * outIpv6AddrPtr
);


Function Description

This function only supports IPv6. This function converts an IPv4 address into an IPv4-mapped IPv6 address (which is an IPv4-only address represented in 128-bit format).



Parameters

  • inIpv4Addr
    IPv4 address to convert.
  • outIpv6AddrPtr
    Pointer to converted IPv4-mapped IPv6 address. The memory that this points to must be allocated by the caller, i.e. a local variable in the caller’s address space.


Returns

  • 0
    Success.
  • TM_EINVAL
    outIpv6AddrPtr was NULL.


Table of Contents >> IPv6 Programmer's Reference