Searched refs:ipVersion (Results 1 – 4 of 4) sorted by relevance
/system/netd/tests/ |
D | test_utils.cpp | 61 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()
|
D | test_utils.h | 28 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);
|
D | binder_test.cpp | 510 const std::string& action, const char* ipVersion) { in ipRuleExistsForRange() argument 513 std::vector<std::string> rules = listIpRules(ipVersion); in ipRuleExistsForRange() 1337 bool ipRuleIpfwdExists(const char* ipVersion, const std::string& ipfwdRule) { in ipRuleIpfwdExists() argument 1338 std::vector<std::string> rules = listIpRules(ipVersion); in ipRuleIpfwdExists() 1350 for (const auto& ipVersion : {IP_RULE_V4, IP_RULE_V6}) { in expectIpfwdRuleExists() 1351 EXPECT_TRUE(ipRuleIpfwdExists(ipVersion, ipfwdRule)); in expectIpfwdRuleExists() 1358 for (const auto& ipVersion : {IP_RULE_V4, IP_RULE_V6}) { in expectIpfwdRuleNotExists() 1359 EXPECT_FALSE(ipRuleIpfwdExists(ipVersion, ipfwdRule)); in expectIpfwdRuleNotExists() 1664 void expectNetworkRouteExistsWithMtu(const char* ipVersion, const std::string& ifName, in expectNetworkRouteExistsWithMtu() argument 1668 EXPECT_TRUE(ipRouteExists(ipVersion, table, ipRouteString(ifName, dst, nextHop, mtu))) in expectNetworkRouteExistsWithMtu() [all …]
|
/system/hardware/interfaces/net/netd/testutils/ |
D | VtsHalNetNetdTestUtils.cpp | 68 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()
|