Searched refs:h_addrtype (Results 1 – 11 of 11) sorted by relevance
/aosp12/packages/modules/DnsResolver/ |
H A D | sethostent.cpp | 90 hent.h_addrtype = 0; in _hf_gethtbyname2() 95 info->hp->h_addrtype = af; in _hf_gethtbyname2() 116 hent.h_addrtype = hp->h_addrtype; in _hf_gethtbyname2() 147 hp->h_addrtype = hent.h_addrtype; in _hf_gethtbyname2() 157 if (hp->h_addrtype == AF_INET) { in _hf_gethtbyname2() 181 info->hp->h_addrtype = af; in _hf_gethtbyaddr()
|
H A D | gethnamaddr.cpp | 360 if (hent->h_addrtype == AF_INET) pad_v4v6_hostent(hent, &bp, ep); in getanswer() 411 hp->h_addrtype = af; in resolv_gethostbyname() 576 if (hent->h_addrtype != 0 && hent->h_addrtype != af) continue; in netbsd_gethostent_r() 592 hent->h_addrtype = af; in netbsd_gethostent_r() 600 if (hent->h_addrtype == AF_INET) { in netbsd_gethostent_r() 624 if (hp->h_addrtype != AF_INET || hp->h_length != NS_INADDRSZ) return; in convert_v4v6_hostent() 655 info->hp->h_addrtype = addr_type; in dns_gethtbyname() 657 switch (info->hp->h_addrtype) { in dns_gethtbyname() 694 info->hp->h_addrtype = af; in dns_gethtbyaddr() 696 switch (info->hp->h_addrtype) { in dns_gethtbyaddr() [all …]
|
H A D | DnsProxyListener.cpp | 200 if (hp->h_addrtype == AF_INET) { in extractGetHostByNameAnswers() 207 } else if (hp->h_addrtype == AF_INET6) { in extractGetHostByNameAnswers() 420 if (hp->h_addrtype != AF_INET) return false; in onlyNonSpecialUseIPv4Addresses() 446 if (inet_ntop(hp->h_addrtype, hp->h_addr_list[i], ip_addr, sizeof(ip_addr)) != nullptr) { in logDnsQueryResult() 447 LOG(DEBUG) << __func__ << ": [" << i << "] " << hp->h_addrtype; in logDnsQueryResult() 515 hp->h_addrtype = AF_INET6; in synthesizeNat64PrefixWithARecord() 630 uint32_t buf = htonl(hp->h_addrtype); in sendhostent() 1280 (*hpp)->h_addrtype = AF_INET6; in doDns64ReverseLookup()
|
/aosp12/bionic/libc/dns/net/ |
H A D | sethostent.c | 165 hent.h_addrtype = 0; /* XXX: gcc */ in _hf_gethtbyname2() 169 info->hp->h_addrtype = af; in _hf_gethtbyname2() 190 hent.h_addrtype = af = hp->h_addrtype; in _hf_gethtbyname2() 223 hp->h_addrtype = hent.h_addrtype; in _hf_gethtbyname2() 262 info->hp->h_addrtype = va_arg(ap, int); in _hf_gethtbyaddr()
|
H A D | gethnamaddr.c | 630 hp->h_addrtype = ntohl(size); in android_read_hostent() 705 hp->h_addrtype = af; in gethostbyname_internal_real() 994 if (hent->h_addrtype != 0 && hent->h_addrtype != af) in netbsd_gethostent_r() 1016 hent->h_addrtype = af; in netbsd_gethostent_r() 1073 hp->h_addrtype = AF_INET6; in map_v4v6_hostent() 1149 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyname() 1151 switch (info->hp->h_addrtype) { in _dns_gethtbyname() 1216 info->hp->h_addrtype = va_arg(ap, int); in _dns_gethtbyaddr() 1219 switch (info->hp->h_addrtype) { in _dns_gethtbyaddr() 1293 hp->h_addrtype = AF_INET6; in _dns_gethtbyaddr() [all …]
|
/aosp12/packages/modules/DnsResolver/tests/ |
H A D | resolv_test_utils.cpp | 30 if (!inet_ntop(he->h_addrtype, he->h_addr_list[0], buffer, sizeof(buffer))) { in ToString() 68 if (!inet_ntop(he->h_addrtype, he->h_addr_list[i], host, sizeof(host))) { in ToStrings()
|
H A D | resolv_integration_test.cpp | 3538 ASSERT_EQ(AF_INET6, result->h_addrtype); in TEST_F()
|
/aosp12/bionic/libc/include/ |
H A D | netdb.h | 84 int h_addrtype; /* host address type */ member
|
/aosp12/bionic/tests/headers/posix/ |
H A D | netdb_h.c | 37 STRUCT_MEMBER(struct hostent, int, h_addrtype); in netdb_h()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/jni/ |
H A D | NativeDnsJni.c | 161 inet_ntop(my_hostent->h_addrtype, *current, buf, sizeof(buf)); in Java_android_net_cts_DnsTest_testNativeDns()
|
/aosp12/bionic/tests/ |
H A D | netdb_test.cpp | 178 ASSERT_EQ(hent->h_addrtype, AF_INET); in VerifyLocalhost()
|