Home
last modified time | relevance | path

Searched refs:res_servers (Results 1 – 2 of 2) sorted by relevance

/system/netd/tests/
Dnetd_test.cpp346 std::vector<std::string> res_servers; in TEST_F() local
350 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F()
351 EXPECT_EQ(servers.size(), res_servers.size()); in TEST_F()
362 EXPECT_TRUE(UnorderedCompareArray(res_servers, servers)); in TEST_F()
614 std::vector<std::string> res_servers; in TEST_F() local
618 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F()
619 EXPECT_EQ(0U, res_servers.size()); in TEST_F()
679 std::vector<std::string> res_servers; in TEST_F() local
683 ASSERT_TRUE(GetResolverInfo(&res_servers, &res_domains, &res_params, &res_stats)); in TEST_F()
684 EXPECT_EQ(static_cast<size_t>(MAXNS), res_servers.size()); in TEST_F()
/system/netd/server/
DResolverController.cpp87 sockaddr_storage res_servers[MAXNS]; in getDnsInfo() local
95 int revision_id = android_net_res_stats_get_info_for_net(netId, &nscount, res_servers, &dcount, in getDnsInfo()
119 int rv = getnameinfo(reinterpret_cast<const sockaddr*>(&res_servers[i]), in getDnsInfo()
120 sizeof(res_servers[i]), hbuf, sizeof(hbuf), nullptr, 0, NI_NUMERICHOST); in getDnsInfo()