Oracle® Solaris 11.2 Dynamic Tracing Guide

Exit Print View

Updated: July 2014
 
 

inet_ntop

string inet_ntop(int af, void *addr)

inet_ntop takes a pointer to an IP address and returns a string version depending on the provided address family. This is similar to inet_ntop() from libnsl as described in inet(3SOCKET). Supported address families are AF_INET and AF_INET6, both of which have been defined for use in D programs. The returned string is allocated out of scratch memory, and is therefore valid only for the duration of the clause. If insufficient scratch space is available, inet_ntop does not execute and an error is generated.