• Home
  • Raw
  • Download

Lines Matching refs:hent

173 static void VerifyLocalhost(hostent *hent) {  in VerifyLocalhost()  argument
174 ASSERT_TRUE(hent != nullptr); in VerifyLocalhost()
175 VerifyLocalhostName(hent->h_name); in VerifyLocalhost()
176 for (size_t i = 0; hent->h_aliases[i] != nullptr; ++i) { in VerifyLocalhost()
177 VerifyLocalhostName(hent->h_aliases[i]); in VerifyLocalhost()
179 ASSERT_EQ(hent->h_addrtype, AF_INET); in VerifyLocalhost()
180 ASSERT_EQ(hent->h_addr[0], 127); in VerifyLocalhost()
181 ASSERT_EQ(hent->h_addr[1], 0); in VerifyLocalhost()
182 ASSERT_EQ(hent->h_addr[2], 0); in VerifyLocalhost()
183 ASSERT_EQ(hent->h_addr[3], 1); in VerifyLocalhost()
197 hostent hent; in TEST() local
201 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
219 hostent hent; in TEST() local
223 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
248 hostent hent; in TEST() local
252 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
277 hostent hent; in TEST() local
281 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
288 hostent hent; in TEST() local
292 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
300 hostent hent; in TEST() local
304 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
311 hostent hent; in TEST() local
315 int result = gethostbyname_r("does.not.exist.google.com", &hent, buf, sizeof(buf), &hp, &err); in TEST()
322 hostent hent; in TEST() local
326 …int result = gethostbyname2_r("does.not.exist.google.com", AF_INET, &hent, buf, sizeof(buf), &hp, … in TEST()
334 hostent hent; in TEST() local
338 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()