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
397 switch (af) { in resolv_gethostbyname()
409 hp->h_addrtype = af; in resolv_gethostbyname()
448 if (_hf_gethtbyname2(name, af, &info)) { in resolv_gethostbyname()
449 int error = dns_gethtbyname(&res, name, af, &info); in resolv_gethostbyname()
463 if (inet_pton(af, name, buf) <= 0) { in resolv_gethostbyname()
475 int resolv_gethostbyaddr(const void* addr, socklen_t len, int af, hostent* hp, char* buf, in resolv_gethostbyaddr() argument
484 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in resolv_gethostbyaddr()
489 if (af == AF_INET6 && len == NS_IN6ADDRSZ && in resolv_gethostbyaddr()
495 af = AF_INET; in resolv_gethostbyaddr()
498 switch (af) { in resolv_gethostbyaddr()
518 if (_hf_gethtbyaddr(uaddr, len, af, &info)) { in resolv_gethostbyaddr()
519 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info, event); in resolv_gethostbyaddr()
532 int af, len; in netbsd_gethostent_r() local
565 af = AF_INET6; in netbsd_gethostent_r()
569 af = AF_INET; in netbsd_gethostent_r()
574 if (hent->h_addrtype != 0 && hent->h_addrtype != af) continue; in netbsd_gethostent_r()
590 hent->h_addrtype = af; in netbsd_gethostent_r()
684 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af, in dns_gethtbyaddr() argument
692 info->hp->h_addrtype = af; in dns_gethtbyaddr()