Searched refs:res_servers (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | ResolverController.cpp | 84 sockaddr_storage res_servers[MAXNS]; in getDnsInfo() local 92 int revision_id = android_net_res_stats_get_info_for_net(netId, &nscount, res_servers, &dcount, in getDnsInfo() 116 int rv = getnameinfo(reinterpret_cast<const sockaddr*>(&res_servers[i]), in getDnsInfo() 117 sizeof(res_servers[i]), hbuf, sizeof(hbuf), nullptr, 0, NI_NUMERICHOST); in getDnsInfo()
|
/system/netd/tests/ |
D | netd_test.cpp | 348 std::vector<std::string> res_servers; in TEST_F() local 352 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F() 353 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F() 364 EXPECT_TRUE(UnorderedCompareArray(res_servers, servers)); in TEST_F() 616 std::vector<std::string> res_servers; in TEST_F() local 620 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F() 621 EXPECT_EQ(0U, res_servers.size()); in TEST_F() 681 std::vector<std::string> res_servers; in TEST_F() local 685 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F() 686 EXPECT_EQ(static_cast<size_t>(MAXNS), res_servers.size()); in TEST_F()
|