/packages/modules/DnsResolver/tests/ |
D | resolv_unit_test.cpp | 1250 hostent hbuf; in TEST_F() local 1253 int rv = resolv_gethostbyname("jiababuei", config.ai_family, &hbuf, tmpbuf, sizeof(tmpbuf), in TEST_F() 1294 hostent hbuf; in TEST_F() local 1297 int rv = resolv_gethostbyname(hostname, family, &hbuf, tmpbuf, sizeof(tmpbuf), in TEST_F() 1316 hostent hbuf; in TEST_F() local 1319 int rv = resolv_gethostbyname("v4only", AF_INET6, &hbuf, tmpbuf, sizeof tmpbuf, &mNetcontext, in TEST_F() 1357 hostent hbuf; in TEST_F() local 1360 int rv = resolv_gethostbyname(host_name, AF_INET, &hbuf, tmpbuf, sizeof tmpbuf, in TEST_F() 1377 hostent hbuf; in TEST_F() local 1380 int rv = resolv_gethostbyname(host_name, AF_INET, &hbuf, tmpbuf, sizeof tmpbuf, &mNetcontext, in TEST_F() [all …]
|
D | resolv_gold_test.cpp | 212 hostent hbuf; in VerifyGetHostByName() local 216 const int rv = resolv_gethostbyname(args.host().c_str(), args.family(), &hbuf, tmpbuf, in VerifyGetHostByName()
|
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 1090 void DnsProxyListener::GetHostByNameHandler::doDns64Synthesis(int32_t* rv, hostent* hbuf, char* buf, in doDns64Synthesis() argument 1110 *rv = resolv_gethostbyname(name, AF_INET, hbuf, buf, buflen, &mNetContext, hpp, event); in doDns64Synthesis() 1133 hostent hbuf; in run() local 1141 rv = resolv_gethostbyname(name, mAf, &hbuf, tmpbuf, sizeof tmpbuf, &mNetContext, &hp, in run() 1153 doDns64Synthesis(&rv, &hbuf, tmpbuf, sizeof tmpbuf, &hp, &event); in run() 1240 void DnsProxyListener::GetHostByAddrHandler::doDns64ReverseLookup(hostent* hbuf, char* buf, in doDns64ReverseLookup() argument 1271 resolv_gethostbyaddr(&v4addr, sizeof(v4addr), AF_INET, hbuf, buf, buflen, &mNetContext, hpp, in doDns64ReverseLookup() 1293 hostent hbuf; in run() local 1299 rv = resolv_gethostbyaddr(&mAddress, mAddressLen, mAddressFamily, &hbuf, tmpbuf, in run() 1308 doDns64ReverseLookup(&hbuf, tmpbuf, sizeof tmpbuf, &hp, &event); in run()
|
D | ResolverController.cpp | 127 char hbuf[NI_MAXHOST]; in getDnsInfo() local 130 sizeof(res_servers[i]), hbuf, sizeof(hbuf), nullptr, 0, NI_NUMERICHOST); in getDnsInfo() 133 server_str.assign(hbuf); in getDnsInfo()
|
D | res_send.cpp | 1154 char hbuf[NI_MAXHOST]; in dump_error() local 1161 if (getnameinfo(address, (socklen_t)alen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), niflags)) { in dump_error() 1162 strncpy(hbuf, "?", sizeof(hbuf) - 1); in dump_error() 1163 hbuf[sizeof(hbuf) - 1] = '\0'; in dump_error() 1168 PLOG(DEBUG) << __func__ << ": " << str << " ([" << hbuf << "]." << sbuf << "): "; in dump_error()
|
D | DnsProxyListener.h | 102 void doDns64Synthesis(int32_t* rv, hostent* hbuf, char* buf, size_t buflen, hostent** hpp, 128 void doDns64ReverseLookup(hostent* hbuf, char* buf, size_t buflen, hostent** hpp,
|