Lines Matching refs:af
554 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, in gethostbyname2_r() argument
563 *result = gethostbyname_internal(name, af, res, hp, buf, buflen, errorp, in gethostbyname2_r()
675 gethostbyname_internal_real(const char *name, int af, res_state res, struct hostent *hp, char *buf, in gethostbyname_internal_real() argument
691 switch (af) { in gethostbyname_internal_real()
706 hp->h_addrtype = af; in gethostbyname_internal_real()
760 default_dns_files, name, strlen(name), af) != NS_SUCCESS) in gethostbyname_internal_real()
776 if (inet_pton(af, name, buf) <= 0) { in gethostbyname_internal_real()
792 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *hbuf, in gethostbyname_internal() argument
799 return gethostbyname_internal_real(name, af, res, hp, hbuf, hbuflen, errorp); in gethostbyname_internal()
808 af) < 0) { in gethostbyname_internal()
824 int gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp, char *buf, in gethostbyaddr_r() argument
828 addr, len, af, hp, buf, buflen, h_errnop, &NETCONTEXT_UNSET); in gethostbyaddr_r()
833 android_gethostbyaddrfornetcontext_real(const void *addr, socklen_t len, int af, struct hostent *hp, in android_gethostbyaddrfornetcontext_real() argument
849 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in android_gethostbyaddrfornetcontext_real()
855 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in android_gethostbyaddrfornetcontext_real()
861 af = AF_INET; in android_gethostbyaddrfornetcontext_real()
864 switch (af) { in android_gethostbyaddrfornetcontext_real()
887 default_dns_files, uaddr, len, af, netcontext) != NS_SUCCESS) in android_gethostbyaddrfornetcontext_real()
894 android_gethostbyaddrfornetcontext_proxy_internal(const void* addr, socklen_t len, int af, in android_gethostbyaddrfornetcontext_proxy_internal() argument
901 return android_gethostbyaddrfornetcontext_real(addr,len, af, hp, hbuf, hbuflen, he, netcontext); in android_gethostbyaddrfornetcontext_proxy_internal()
904 const char * addrStr = inet_ntop(af, addr, buf, sizeof(buf)); in android_gethostbyaddrfornetcontext_proxy_internal()
913 addrStr, len, af, netid) < 0) { in android_gethostbyaddrfornetcontext_proxy_internal()
933 int af, len; in netbsd_gethostent_r() local
974 af = AF_INET6; in netbsd_gethostent_r()
985 af = AF_INET6; in netbsd_gethostent_r()
988 af = AF_INET; in netbsd_gethostent_r()
995 if (hent->h_addrtype != 0 && hent->h_addrtype != af) in netbsd_gethostent_r()
1017 hent->h_addrtype = af; in netbsd_gethostent_r()
1310 _yp_hostent(char *line, int af, struct getnamaddr *info) in _yp_hostent() argument
1326 hp->h_addrtype = af; in _yp_hostent()
1327 switch (af) { in _yp_hostent()
1353 addrok = inet_pton(af, p, &host_addrs[naddrs]); in _yp_hostent()
1443 int af; in _yp_gethtbyaddr() local
1451 af = va_arg(ap, int); in _yp_gethtbyaddr()
1461 if (inet_ntop(af, uaddr, name, (socklen_t)sizeof(name)) == NULL) in _yp_gethtbyaddr()
1463 switch (af) { in _yp_gethtbyaddr()
1475 hp = _yp_hostent(ypcurrent, af, info); in _yp_gethtbyaddr()
1494 int af; in _yp_gethtbyname() local
1502 af = va_arg(ap, int); in _yp_gethtbyname()
1508 switch (af) { in _yp_gethtbyname()
1520 hp = _yp_hostent(ypcurrent, af, info); in _yp_gethtbyname()
1547 gethostbyname2(const char *name, int af) in gethostbyname2() argument
1552 gethostbyname2_r(name, af, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno); in gethostbyname2()
1572 android_gethostbynamefornet(const char *name, int af, unsigned netid, unsigned mark) in android_gethostbynamefornet() argument
1575 return android_gethostbynamefornetcontext(name, af, &netcontext); in android_gethostbynamefornet()
1579 android_gethostbynamefornetcontext(const char *name, int af, in android_gethostbynamefornetcontext() argument
1587 hp = gethostbyname_internal(name, af, res, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), in android_gethostbynamefornetcontext()
1594 gethostbyaddr(const void *addr, socklen_t len, int af) in gethostbyaddr() argument
1596 return android_gethostbyaddrfornetcontext_proxy(addr, len, af, &NETCONTEXT_UNSET); in gethostbyaddr()
1600 android_gethostbyaddrfornet(const void *addr, socklen_t len, int af, unsigned netid, unsigned mark) in android_gethostbyaddrfornet() argument
1603 return android_gethostbyaddrfornetcontext(addr, len, af, &netcontext); in android_gethostbyaddrfornet()
1607 android_gethostbyaddrfornetcontext(const void *addr, socklen_t len, int af, in android_gethostbyaddrfornetcontext() argument
1610 return android_gethostbyaddrfornetcontext_proxy(addr, len, af, netcontext); in android_gethostbyaddrfornetcontext()
1614 android_gethostbyaddrfornetcontext_proxy(const void* addr, socklen_t len, int af, in android_gethostbyaddrfornetcontext_proxy() argument
1618 return android_gethostbyaddrfornetcontext_proxy_internal(addr, len, af, &rs->host, rs->hostbuf, in android_gethostbyaddrfornetcontext_proxy()