Home
last modified time | relevance | path

Searched refs:ipVersion (Results 1 – 4 of 4) sorted by relevance

/system/netd/tests/
Dtest_utils.cpp61 std::vector<std::string> listIpRules(const char* ipVersion) { in listIpRules() argument
62 std::string command = StringPrintf("%s %s rule list", IP_PATH, ipVersion); in listIpRules()
86 std::vector<std::string> listIpRoutes(const char* ipVersion, const char* table) { in listIpRoutes() argument
87 std::string command = StringPrintf("%s %s route ls table %s", IP_PATH, ipVersion, table); in listIpRoutes()
91 bool ipRouteExists(const char* ipVersion, const char* table, const std::string& ipRoute) { in ipRouteExists() argument
92 std::vector<std::string> routes = listIpRoutes(ipVersion, table); in ipRouteExists()
Dtest_utils.h28 std::vector<std::string> listIpRules(const char* ipVersion);
36 std::vector<std::string> listIpRoutes(const char* ipVersion, const char* table);
38 bool ipRouteExists(const char* ipVersion, const char* table, const std::string& ipRoute);
Dbinder_test.cpp567 const std::string& action, const char* ipVersion, in ipRuleExistsForRange() argument
572 std::vector<std::string> rules = listIpRules(ipVersion); in ipRuleExistsForRange()
1492 bool ipRuleIpfwdExists(const char* ipVersion, const std::string& ipfwdRule) { in ipRuleIpfwdExists() argument
1493 std::vector<std::string> rules = listIpRules(ipVersion); in ipRuleIpfwdExists()
1506 for (const auto& ipVersion : {IP_RULE_V4, IP_RULE_V6}) { in expectIpfwdRuleExists()
1507 EXPECT_TRUE(ipRuleIpfwdExists(ipVersion, ipfwdRule)); in expectIpfwdRuleExists()
1515 for (const auto& ipVersion : {IP_RULE_V4, IP_RULE_V6}) { in expectIpfwdRuleNotExists()
1516 EXPECT_FALSE(ipRuleIpfwdExists(ipVersion, ipfwdRule)); in expectIpfwdRuleNotExists()
1784 void expectNetworkRouteExistsWithMtu(const char* ipVersion, const std::string& ifName, in expectNetworkRouteExistsWithMtu() argument
1788 EXPECT_TRUE(ipRouteExists(ipVersion, table, ipRouteString(ifName, dst, nextHop, mtu))) in expectNetworkRouteExistsWithMtu()
[all …]
/system/hardware/interfaces/net/netd/testutils/
DVtsHalNetNetdTestUtils.cpp68 static std::vector<std::string> listIpRules(const char* ipVersion) { in listIpRules() argument
69 std::string command = StringPrintf("%s %s rule list", IP_PATH, ipVersion); in listIpRules()