Searched refs:hent (Results 1 – 3 of 3) sorted by relevance
/bionic/tests/ |
D | netdb_test.cpp | 172 static void VerifyLocalhost(hostent *hent) { in VerifyLocalhost() argument 173 ASSERT_TRUE(hent != NULL); in VerifyLocalhost() 174 VerifyLocalhostName(hent->h_name); in VerifyLocalhost() 175 for (size_t i = 0; hent->h_aliases[i] != NULL; ++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() [all …]
|
/bionic/libc/dns/net/ |
D | sethostent.c | 130 struct hostent *hp, hent; in _hf_gethtbyname2() local 154 hent.h_name = NULL; /* XXX: gcc */ in _hf_gethtbyname2() 155 hent.h_addrtype = 0; /* XXX: gcc */ in _hf_gethtbyname2() 156 hent.h_length = 0; /* XXX: gcc */ in _hf_gethtbyname2() 180 hent.h_addrtype = af = hp->h_addrtype; in _hf_gethtbyname2() 181 hent.h_length = hp->h_length; in _hf_gethtbyname2() 183 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2() 213 hp->h_addrtype = hent.h_addrtype; in _hf_gethtbyname2() 214 hp->h_length = hent.h_length; in _hf_gethtbyname2() 224 HENT_SCOPY(hp->h_name, hent.h_name, ptr, len); in _hf_gethtbyname2()
|
D | gethnamaddr.c | 202 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument 224 hent->h_name = NULL; in getanswer() 266 hent->h_name = bp; in getanswer() 269 qname = hent->h_name; in getanswer() 271 hent->h_aliases = ap = aliases; in getanswer() 272 hent->h_addr_list = hap = addr_ptrs; in getanswer() 323 hent->h_name = bp; in getanswer() 375 hent->h_name = bp; in getanswer() 388 hent->h_name = bp; in getanswer() 396 map_v4v6_hostent(hent, &bp, ep); in getanswer() [all …]
|