Lines Matching refs:af
112 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af,
115 static int dns_gethtbyname(ResState* res, const char* name, int af, getnamaddr* info);
388 int resolv_gethostbyname(const char* name, int af, hostent* hp, char* buf, size_t buflen, in resolv_gethostbyname() argument
399 switch (af) { in resolv_gethostbyname()
411 hp->h_addrtype = af; in resolv_gethostbyname()
450 if (_hf_gethtbyname2(name, af, &info)) { in resolv_gethostbyname()
451 int error = dns_gethtbyname(&res, name, af, &info); in resolv_gethostbyname()
465 if (inet_pton(af, name, buf) <= 0) { in resolv_gethostbyname()
477 int resolv_gethostbyaddr(const void* addr, socklen_t len, int af, hostent* hp, char* buf, in resolv_gethostbyaddr() argument
486 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in resolv_gethostbyaddr()
491 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in resolv_gethostbyaddr()
497 af = AF_INET; in resolv_gethostbyaddr()
500 switch (af) { in resolv_gethostbyaddr()
520 if (_hf_gethtbyaddr(uaddr, len, af, &info)) { in resolv_gethostbyaddr()
521 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info, event); in resolv_gethostbyaddr()
534 int af, len; in netbsd_gethostent_r() local
567 af = AF_INET6; in netbsd_gethostent_r()
571 af = AF_INET; in netbsd_gethostent_r()
576 if (hent->h_addrtype != 0 && hent->h_addrtype != af) continue; in netbsd_gethostent_r()
592 hent->h_addrtype = af; in netbsd_gethostent_r()
686 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af, in dns_gethtbyaddr() argument
694 info->hp->h_addrtype = af; in dns_gethtbyaddr()