Lines Matching refs:hent

172 static void VerifyLocalhost(hostent *hent) {  in VerifyLocalhost()  argument
173 ASSERT_TRUE(hent != nullptr); in VerifyLocalhost()
174 VerifyLocalhostName(hent->h_name); in VerifyLocalhost()
175 for (size_t i = 0; hent->h_aliases[i] != nullptr; ++i) { in VerifyLocalhost()
176 VerifyLocalhostName(hent->h_aliases[i]); in VerifyLocalhost()
178 ASSERT_EQ(hent->h_addrtype, AF_INET); in VerifyLocalhost()
179 ASSERT_EQ(hent->h_addr[0], 127); in VerifyLocalhost()
180 ASSERT_EQ(hent->h_addr[1], 0); in VerifyLocalhost()
181 ASSERT_EQ(hent->h_addr[2], 0); in VerifyLocalhost()
182 ASSERT_EQ(hent->h_addr[3], 1); in VerifyLocalhost()
196 hostent hent; in TEST() local
200 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
218 hostent hent; in TEST() local
222 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
247 hostent hent; in TEST() local
251 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
269 hostent hent; in TEST() local
273 int result = gethostbyname_r("localhost", &hent, buf, sizeof(buf), &hp, &err); in TEST()
280 hostent hent; in TEST() local
284 int result = gethostbyname2_r("localhost", AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
292 hostent hent; in TEST() local
296 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()
303 hostent hent; in TEST() local
307 int result = gethostbyname_r("does.not.exist.google.com", &hent, buf, sizeof(buf), &hp, &err); in TEST()
314 hostent hent; in TEST() local
318 …int result = gethostbyname2_r("does.not.exist.google.com", AF_INET, &hent, buf, sizeof(buf), &hp, … in TEST()
326 hostent hent; in TEST() local
330 int result = gethostbyaddr_r(&addr, sizeof(addr), AF_INET, &hent, buf, sizeof(buf), &hp, &err); in TEST()