* Paul Vixie, 1996.
*/
const char *
-inet_ntop(int af, const void *src, char *dst, size_t size)
+ares_inet_ntop(int af, const void *src, char *dst, size_t size)
{
switch (af) {
case AF_INET:
return (inet_ntop4(src, dst, size));
-#ifdef INET6
case AF_INET6:
return (inet_ntop6(src, dst, size));
-#endif
default:
errno = EAFNOSUPPORT;
return (NULL);
return (dst);
}
-#ifdef INET6
/* const char *
* inet_ntop6(src, dst, size)
* convert IPv6 binary address into presentation (printable) format
strcpy(dst, tmp);
return (dst);
}
-#endif
#endif