Home
last modified time | relevance | path

Searched refs:hostent (Results 1 – 5 of 5) sorted by relevance

/system/connectivity/shill/
Ddns_client.h34 struct hostent;
88 void ReceiveDNSReply(int status, struct hostent* hostent);
90 struct hostent* hostent);
Ddns_client.cc230 void DNSClient::ReceiveDNSReply(int status, struct hostent* hostent) { in ReceiveDNSReply() argument
242 hostent != nullptr && in ReceiveDNSReply()
243 hostent->h_addrtype == address_.family() && in ReceiveDNSReply()
244 static_cast<size_t>(hostent->h_length) == in ReceiveDNSReply()
246 hostent->h_addr_list != nullptr && in ReceiveDNSReply()
247 hostent->h_addr_list[0] != nullptr) { in ReceiveDNSReply()
250 hostent->h_addr_list[0]), hostent->h_length)); in ReceiveDNSReply()
297 struct hostent* hostent) { in ReceiveDNSReplyCB() argument
299 res->ReceiveDNSReply(status, hostent); in ReceiveDNSReplyCB()
Ddns_client_unittest.cc239 struct hostent hostent_;
/system/netd/server/
DDnsProxyListener.cpp125 static bool sendhostent(SocketClient *c, struct hostent *hp) { in sendhostent()
381 struct hostent* hp = android_gethostbynamefornet(mName, mAf, mNetId, mMark); in run()
501 struct hostent* hp; in run()
/system/netd/tests/
Dnetd_test.cpp320 std::string ToString(const hostent* he) const { in ToString()
432 const hostent* result = gethostbyname("hello"); in TEST_F()
472 const hostent* result = gethostbyname(mapping.host.c_str()); in TEST_F()
622 const hostent* result = gethostbyname("nihao"); in TEST_F()