Searched refs:hent (Results 1 – 3 of 3) sorted by relevance
/bionic/tests/ |
D | netdb_test.cpp | 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() [all …]
|
/bionic/libc/dns/net/ |
D | sethostent.c | 141 struct hostent *hp, hent; in _hf_gethtbyname2() local 164 hent.h_name = NULL; /* XXX: gcc */ in _hf_gethtbyname2() 165 hent.h_addrtype = 0; /* XXX: gcc */ in _hf_gethtbyname2() 166 hent.h_length = 0; /* XXX: gcc */ in _hf_gethtbyname2() 190 hent.h_addrtype = af = hp->h_addrtype; in _hf_gethtbyname2() 191 hent.h_length = hp->h_length; in _hf_gethtbyname2() 193 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2() 223 hp->h_addrtype = hent.h_addrtype; in _hf_gethtbyname2() 224 hp->h_length = hent.h_length; in _hf_gethtbyname2() 234 HENT_SCOPY(hp->h_name, hent.h_name, ptr, len); in _hf_gethtbyname2()
|
D | gethnamaddr.c | 217 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) in getanswer() argument 239 hent->h_name = NULL; in getanswer() 281 hent->h_name = bp; in getanswer() 284 qname = hent->h_name; in getanswer() 286 hent->h_aliases = ap = aliases; in getanswer() 287 hent->h_addr_list = hap = addr_ptrs; in getanswer() 338 hent->h_name = bp; in getanswer() 390 hent->h_name = bp; in getanswer() 403 hent->h_name = bp; in getanswer() 411 map_v4v6_hostent(hent, &bp, ep); in getanswer() [all …]
|