Lines Matching refs:len
112 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af,
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()
496 len = NS_INADDRSZ; in resolv_gethostbyaddr()
508 if (size != len) { 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
566 len = NS_IN6ADDRSZ; in netbsd_gethostent_r()
570 len = NS_INADDRSZ; in netbsd_gethostent_r()
575 if (hent->h_length != 0 && hent->h_length != len) continue; in netbsd_gethostent_r()
589 hent->h_length = len; in netbsd_gethostent_r()
684 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af, in dns_gethtbyaddr() argument
691 info->hp->h_length = len; in dns_gethtbyaddr()