* Paul Vixie, 1996.
*/
int
-isc_net_pton(af, src, dst)
- int af;
- const char *src;
- void *dst;
+inet_pton(int af,
+ const char *src,
+ void *dst)
{
switch (af) {
case AF_INET:
return (inet_pton4(src, dst));
+#ifdef INET6
case AF_INET6:
return (inet_pton6(src, dst));
+#endif
default:
errno = EAFNOSUPPORT;
return (-1);
* author:
* Paul Vixie, 1996.
*/
+#ifdef INET6
static int
inet_pton6(src, dst)
const char *src;
memcpy(dst, tmp, NS_IN6ADDRSZ);
return (1);
}
+#endif