Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
inet_ntop(3)
Edit
PageHistory
Diff
Info
LikePages
inet_ntop !!!inet_ntop NAME SYNOPSIS DESCRIPTION RETURN VALUE SEE ALSO BUGS ---- !!NAME inet_ntop - Parse network address structures !!SYNOPSIS __#include __ ''af''__, const void *__''src''__, char *__''dst''__, size_t__ ''cnt''__); __ !!DESCRIPTION This function converts the network address structure ''src'' in the ''af'' address family into a character string, which is copied to a character buffer ''dst'', which is ''cnt'' bytes long. inet_ntop(3) extends the __inet_ntoa__(3) function to support multiple address families, inet_ntoa(3) is now considered to be deprecated in favor of inet_ntop(3). The following address families are currently supported: __AF_INET__ ''src'' points to a ''struct in_addr'' (network byte order format) which is converted to an IPv4 network address in the dotted-quad format, ''ddd.ddd.ddd.ddd''''dst'' must be at least __INET_ADDRSTRLEN__ bytes long. __AF_INET6__ ''src'' points to a ''struct in6_addr'' (network byte order format) which is converted to a representation of this address in the most appropriate IPv6 network address format for this address. The buffer ''dst'' must be at least __INET6_ADDRSTRLEN__ bytes long. !!RETURN VALUE __inet_ntop__ returns a non-null pointer to ''dst''. NULL is returned if there was an error, with ''errno'' set to __EAFNOSUPPORT__ if ''af'' was not set to a valid address family, or to __ENOSPC__ if the converted address string would exceed the size of ''dst'' given by the ''cnt'' argument. !!SEE ALSO inet_pton(3) !!BUGS __AF_INET6__ converts IPv6-mapped IPv4 addresses into an IPv6 format. ----
14 pages link to
inet_ntop(3)
:
Man3i
freehostent(3)
getipnodebyaddr(3)
getipnodebyname(3)
getnameinfo(3)
inet(3)
inet_addr(3)
inet_lnaof(3)
inet_makeaddr(3)
inet_netof(3)
inet_network(3)
inet_ntoa(3)
inet_pton(3)
inet_aton(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.