pr_convertipv4addrtoipv6.rst (561B)
1 PR_ConvertIPv4AddrToIPv6 2 ======================== 3 4 Converts an IPv4 address into an (IPv4-mapped) IPv6 address. 5 6 7 Syntax 8 ~~~~~~ 9 10 .. code:: 11 12 #include <prnetdb.h> 13 14 void PR_ConvertIPv4AddrToIPv6( 15 PRUint32 v4addr, 16 PRIPv6Addr *v6addr 17 ); 18 19 20 Parameters 21 ~~~~~~~~~~ 22 23 The function has the following parameters: 24 25 ``v4addr`` 26 The IPv4 address to convert into an IPv4-mapped IPv6 address. This 27 must be specified in network byte order. 28 ``v6addr`` 29 A pointer to a buffer, allocated by the caller, that is filled in 30 with the IPv6 address on return.