Lines Matching refs:hints

98                                          const addrinfo* hints, unsigned netid, unsigned mark,
135 const addrinfo& hints) { in safe_getaddrinfo_time_taken() argument
137 ScopedAddrinfo result = safe_getaddrinfo(node, service, &hints); in safe_getaddrinfo_time_taken()
774 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
775 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
825 const addrinfo hints = { in TEST_F() local
832 EXPECT_EQ(EAI_NODATA, getaddrinfo("hello", nullptr, &hints, &result)); in TEST_F()
868 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
880 ScopedAddrinfo result = safe_getaddrinfo(host_name_deferred, nullptr, &hints); in TEST_F()
897 ScopedAddrinfo result = safe_getaddrinfo(host_name_deferred, nullptr, &hints); in TEST_F()
915 ScopedAddrinfo result = safe_getaddrinfo(host_name_normal, nullptr, &hints); in TEST_F()
936 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
937 ScopedAddrinfo result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
963 hints = {.ai_family = AF_UNSPEC}; in TEST_F()
964 result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
992 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
993 ScopedAddrinfo result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
1016 hints = {.ai_family = AF_UNSPEC}; in TEST_F()
1017 result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
1049 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
1050 ScopedAddrinfo result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
1075 hints = {.ai_family = AF_UNSPEC}; in TEST_F()
1076 result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
1118 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
1119 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1124 hints = {.ai_family = AF_INET6}; in TEST_F()
1125 result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1138 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
1139 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1143 hints = {.ai_family = AF_INET6}; in TEST_F()
1144 result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1156 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
1157 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1161 hints = {.ai_family = AF_INET6}; in TEST_F()
1162 result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1238 addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local
1239 ScopedAddrinfo result = safe_getaddrinfo(numeric_addr, nullptr, &hints); in TEST_F()
1246 hints.ai_flags |= AI_NUMERICHOST; in TEST_F()
1247 result = safe_getaddrinfo(host_name, nullptr, &hints); in TEST_F()
1278 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local
1281 ScopedAddrinfo result = safe_getaddrinfo(domain.c_str(), nullptr, &hints); in TEST_F()
1287 ScopedAddrinfo result = safe_getaddrinfo("ohayou", nullptr, &hints); in TEST_F()
1333 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_STREAM}; in TEST_F() local
1337 ScopedAddrinfo result = safe_getaddrinfo(host_name1, nullptr, &hints); in TEST_F()
1347 EXPECT_EQ(EAI_NODATA, getaddrinfo(host_name2, nullptr, &hints, &result2)); in TEST_F()
1381 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local
1383 int rv = getaddrinfo("konbanha", nullptr, &hints, &result); in TEST_F()
1429 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
1430 EXPECT_TRUE(safe_getaddrinfo(hostName.c_str(), nullptr, &hints) != nullptr); in TEST_F()
1484 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
1485 EXPECT_TRUE(safe_getaddrinfo(hostName.c_str(), nullptr, &hints) != nullptr); in TEST_F()
1533 const addrinfo hints = {.ai_family = AF_UNSPEC}; in TEST_F() local
1534 ScopedAddrinfo result = safe_getaddrinfo(hostname, nullptr, &hints); in TEST_F()
1614 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() local
1615 ScopedAddrinfo result = safe_getaddrinfo(config.name.c_str(), nullptr, &hints); in TEST_F()
1661 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() local
1662 ScopedAddrinfo result = safe_getaddrinfo(hostnameV4V6, nullptr, &hints); in TEST_F()
1676 result = safe_getaddrinfo(hostnameV4V6, nullptr, &hints); in TEST_F()
1705 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() local
1706 ScopedAddrinfo result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
1717 hints = {.ai_family = AF_UNSPEC}; in TEST_F()
1718 result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
1773 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local
1774 ScopedAddrinfo result = safe_getaddrinfo("test13", nullptr, &hints); in TEST_F()
1785 result = safe_getaddrinfo("test13", nullptr, &hints); in TEST_F()
1827 const addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local
1828 ScopedAddrinfo result = safe_getaddrinfo("test13", nullptr, &hints); in TEST_F()
1847 result = safe_getaddrinfo("test14", nullptr, &hints); in TEST_F()
1949 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
1950 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
1995 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
1996 ScopedAddrinfo result = safe_getaddrinfo(hostname, nullptr, &hints); in TEST_F()
3195 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3196 ai_result = safe_getaddrinfo(host_name, nullptr, &hints); in TEST_F()
3248 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3249 ScopedAddrinfo ai_result = safe_getaddrinfo(host_name2, nullptr, &hints); in TEST_F()
3278 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3279 ScopedAddrinfo ai_result = safe_getaddrinfo(host_name2, nullptr, &hints); in TEST_F()
3302 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3303 ScopedAddrinfo result = safe_getaddrinfo("v4only", nullptr, &hints); in TEST_F()
3315 result = safe_getaddrinfo("v4only", nullptr, &hints); in TEST_F()
3332 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3333 ScopedAddrinfo result = safe_getaddrinfo(kHelloExampleCom, nullptr, &hints); in TEST_F()
3377 const addrinfo hints = { in TEST_F() local
3379 ScopedAddrinfo result = safe_getaddrinfo("v4only", nullptr, &hints); in TEST_F()
3403 addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3404 ScopedAddrinfo result = safe_getaddrinfo("v4only", nullptr, &hints); in TEST_F()
3412 hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3413 result = safe_getaddrinfo("v4only", nullptr, &hints); in TEST_F()
3433 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3434 ScopedAddrinfo result = safe_getaddrinfo("v4v6", nullptr, &hints); in TEST_F()
3455 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3456 ScopedAddrinfo result = safe_getaddrinfo("v4v6", nullptr, &hints); in TEST_F()
3509 addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
3510 ScopedAddrinfo result = safe_getaddrinfo(config.name.c_str(), nullptr, &hints); in TEST_F()
3517 hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F()
3518 result = safe_getaddrinfo(config.name.c_str(), nullptr, &hints); in TEST_F()
3604 addrinfo hints = { in TEST_F() local
3612 ScopedAddrinfo result = safe_getaddrinfo(nullptr, PORT_NAME_HTTP, &hints); in TEST_F()
3623 hints.ai_flags = config.flag | AI_NUMERICSERV; in TEST_F()
3624 result = safe_getaddrinfo(nullptr, PORT_NUMBER_HTTP, &hints); in TEST_F()
4167 addrinfo hints = {.ai_family = AF_INET6}; in TEST_F() local
4170 ScopedAddrinfo result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4175 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4181 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4208 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4214 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4219 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4224 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4242 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4248 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4262 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4279 result = safe_getaddrinfo("v4.example.com", nullptr, &hints); in TEST_F()
4510 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
4530 EXPECT_EQ(EAI_NODATA, getaddrinfo(td.hname, nullptr, &hints, &result)); in TEST_F()
4534 ScopedAddrinfo result = safe_getaddrinfo(td.hname, nullptr, &hints); in TEST_F()
4696 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
4697 auto [result, timeTakenMs] = safe_getaddrinfo_time_taken(hostname1, nullptr, hints); in TEST_F()
4712 std::tie(result, timeTakenMs) = safe_getaddrinfo_time_taken(hostname2, nullptr, hints); in TEST_F()
5342 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
5353 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
5369 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
5373 std::thread t1([&listen_addr1, &hints, this]() { in TEST_F()
5376 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
5387 std::thread t2([&listen_addr2, &hints, &dns2, this]() { in TEST_F()
5390 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
5409 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
5500 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
5501 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in TEST_F()
5549 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
5550 EXPECT_NE(safe_getaddrinfo(hostname, nullptr, &hints), nullptr); in TEST_F()
5605 EXPECT_NE(safe_getaddrinfo(hostname, nullptr, &hints), nullptr); in TEST_F()
5876 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in VerifyQueryHelloExampleComV4() local
5877 ScopedAddrinfo result = safe_getaddrinfo("hello", nullptr, &hints); in VerifyQueryHelloExampleComV4()
6171 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6172 ScopedAddrinfo result = safe_getaddrinfo(host_name, nullptr, &hints); in TEST_F()
6215 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6216 auto [result, timeTakenMs] = safe_getaddrinfo_time_taken(host_name, nullptr, hints); in TEST_F()
6247 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6248 auto [result, timeTakenMs] = safe_getaddrinfo_time_taken(kHelloExampleCom, nullptr, hints); in TEST_F()
6259 std::tie(result, timeTakenMs) = safe_getaddrinfo_time_taken(kHelloExampleCom, nullptr, hints); in TEST_F()
6285 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6289 safe_getaddrinfo(hostName.c_str(), nullptr, &hints); in TEST_F()
6405 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6406 auto [result, timeTakenMs] = safe_getaddrinfo_time_taken(hostname.c_str(), nullptr, hints); in TEST_F()
6723 addrinfo hints = {.ai_family = config.ai_family, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6724 ScopedAddrinfo result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6744 result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6797 addrinfo hints = {.ai_family = config.ai_family, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6798 ScopedAddrinfo result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6844 const addrinfo hints = { in TEST_F() local
6851 EXPECT_EQ(EAI_NODATA, getaddrinfo("howdy.local", nullptr, &hints, &result)); in TEST_F()
6893 addrinfo hints = {.ai_family = config.ai_family, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6894 ScopedAddrinfo result = safe_getaddrinfo("hi.local", nullptr, &hints); in TEST_F()
6910 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
6911 ScopedAddrinfo result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6915 hints = {.ai_family = AF_INET6}; in TEST_F()
6916 result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6920 hints = {.ai_family = AF_UNSPEC}; in TEST_F()
6921 result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6935 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() local
6936 ScopedAddrinfo result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6940 hints = {.ai_family = AF_INET6}; in TEST_F()
6941 result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6945 hints = {.ai_family = AF_UNSPEC}; in TEST_F()
6946 result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
6983 addrinfo hints = {.ai_family = config.ai_family, .ai_socktype = SOCK_DGRAM}; in TEST_F() local
6984 ScopedAddrinfo result = safe_getaddrinfo("hello.local", nullptr, &hints); in TEST_F()
7403 static const addrinfo hints = { in android_getaddrinfofornet_wrapper() local
7409 if (int r = android_getaddrinfofornet(name, nullptr, &hints, netId, MARK_UNSET, &result)) { in android_getaddrinfofornet_wrapper()