Home
last modified time | relevance | path

Searched refs:uaddr (Results 1 – 3 of 3) sorted by relevance

/system/netd/resolv/
Dgethnamaddr.cpp118 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af,
505 const u_char* uaddr = (const u_char*) addr; in android_gethostbyaddrfornetcontext_real() local
520 uaddr += NS_IN6ADDRSZ - NS_INADDRSZ; in android_gethostbyaddrfornetcontext_real()
521 addr = uaddr; in android_gethostbyaddrfornetcontext_real()
545 if (_hf_gethtbyaddr(uaddr, len, af, &info)) { in android_gethostbyaddrfornetcontext_real()
546 int error = dns_gethtbyaddr(uaddr, len, af, netcontext, &info); in android_gethostbyaddrfornetcontext_real()
797 static int dns_gethtbyaddr(const unsigned char* uaddr, int len, int af, in dns_gethtbyaddr() argument
808 (void) snprintf(qbuf, sizeof(qbuf), "%u.%u.%u.%u.in-addr.arpa", (uaddr[3] & 0xff), in dns_gethtbyaddr()
809 (uaddr[2] & 0xff), (uaddr[1] & 0xff), (uaddr[0] & 0xff)); in dns_gethtbyaddr()
816 advance = snprintf(qp, (size_t)(ep - qp), "%x.%x.", uaddr[n] & 0xf, in dns_gethtbyaddr()
[all …]
Dhostent.h44 int _hf_gethtbyaddr(const unsigned char* uaddr, int len, int af, getnamaddr* info);
Dsethostent.cpp177 int _hf_gethtbyaddr(const unsigned char* uaddr, int len, int af, getnamaddr* info) { in _hf_gethtbyaddr() argument
193 if (!memcmp(hp->h_addr_list[0], uaddr, (size_t) hp->h_length)) break; in _hf_gethtbyaddr()