Searched refs:h_aliases (Results 1 – 4 of 4) sorted by relevance
/packages/modules/DnsResolver/ |
D | sethostent.cpp | 115 for (cp = hp->h_aliases; *cp != NULL; cp++) in _hf_gethtbyname2() 126 for (anum = 0; hp->h_aliases[anum]; anum++) { in _hf_gethtbyname2() 128 const char* h_alias = hp->h_aliases[anum]; in _hf_gethtbyname2() 162 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _hf_gethtbyname2() 185 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _hf_gethtbyname2() 187 hp->h_aliases[anum] = NULL; in _hf_gethtbyname2()
|
D | gethnamaddr.cpp | 354 qlen = aliases.size() * sizeof(*hent->h_aliases); in getanswer() 356 hent->h_aliases = (char**) bp; in getanswer() 447 HENT_ARRAY(hp->h_aliases, 0, buf, buflen); in resolv_gethostbyname() 449 hp->h_aliases[0] = NULL; in resolv_gethostbyname() 580 HENT_ARRAY(hent->h_aliases, anum, buf, buflen); in netbsd_gethostent_r() 590 for (size_t i = 0; i < anum; i++) HENT_SCOPY(hent->h_aliases[i], aliases[i], buf, buflen); in netbsd_gethostent_r() 591 hent->h_aliases[anum] = NULL; in netbsd_gethostent_r()
|
D | DnsProxyListener.cpp | 810 for (i = 0; hp->h_aliases[i] != nullptr; i++) { in sendhostent() 811 const char* h_aliases = hp->h_aliases[i]; in sendhostent() local 812 success &= sendLenAndData(c, strlen(h_aliases) + 1, hp->h_aliases[i]); in sendhostent()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_integration_test.cpp | 502 for (int i = 0; result != nullptr && result->h_aliases[i] != nullptr; i++) { in TEST_F() 504 EXPECT_EQ(result->h_aliases[i], domain_name); in TEST_F() 520 for (unsigned i = 0; result != nullptr && result->h_aliases[i] != nullptr; i++) { in TEST_F() 522 EXPECT_EQ(result->h_aliases[i], domain_name); in TEST_F() 6641 for (int i = 0; result != nullptr && result->h_aliases[i] != nullptr; i++) { in TEST_F() 6644 EXPECT_EQ(result->h_aliases[i], domain_name); in TEST_F()
|