/system/connectivity/shill/test-scripts/ |
D | routing.py | 100 self.routes = [] 108 self.routes.append( 112 for rr in self.routes: 121 for rr in self.routes: 127 for rr in self.routes: 136 for rr in self.routes: 143 routes = NetworkRoutes() variable 144 if routes == None: 147 for each_route in routes.routes: 150 print "hasDefaultRoute(\"eth0\"):", routes.hasDefaultRoute("eth0") [all …]
|
/system/connectivity/shill/vpn/ |
D | openvpn_driver_unittest.cc | 499 OpenVPNDriver::RouteOptions routes; in TEST_F() local 500 EXPECT_EQ(nullptr, OpenVPNDriver::GetRouteOptionEntry("foo", "bar", &routes)); in TEST_F() 501 EXPECT_TRUE(routes.empty()); in TEST_F() 502 EXPECT_EQ(nullptr, OpenVPNDriver::GetRouteOptionEntry("foo", "foo", &routes)); in TEST_F() 503 EXPECT_TRUE(routes.empty()); in TEST_F() 505 OpenVPNDriver::GetRouteOptionEntry("foo", "fooz", &routes)); in TEST_F() 506 EXPECT_TRUE(routes.empty()); in TEST_F() 508 OpenVPNDriver::GetRouteOptionEntry("foo", "foo12", &routes); in TEST_F() 509 EXPECT_EQ(1, routes.size()); in TEST_F() 510 EXPECT_EQ(route, &routes[12]); in TEST_F() [all …]
|
D | third_party_vpn_driver_unittest.cc | 293 EXPECT_EQ(driver_->ip_properties_.routes.size(), 2); in TEST_F() 294 EXPECT_EQ(driver_->ip_properties_.routes[0].host, "123.211.61.29"); in TEST_F() 295 EXPECT_EQ(driver_->ip_properties_.routes[1].host, "123.211.42.29"); in TEST_F() 296 EXPECT_EQ(driver_->ip_properties_.routes[0].netmask, "254.0.0.0"); in TEST_F() 297 EXPECT_EQ(driver_->ip_properties_.routes[1].netmask, "255.255.128.0"); in TEST_F() 298 EXPECT_EQ(driver_->ip_properties_.routes[0].gateway, parameters["address"]); in TEST_F() 299 EXPECT_EQ(driver_->ip_properties_.routes[1].gateway, parameters["address"]); in TEST_F()
|
D | openvpn_driver.cc | 410 RouteOptions routes; in ParseIPConfiguration() local 475 value, &routes); in ParseIPConfiguration() 481 SetRoutes(routes, properties); in ParseIPConfiguration() 535 const string& prefix, const string& key, RouteOptions* routes) { in GetRouteOptionEntry() argument 541 return&(*routes)[order]; in GetRouteOptionEntry() 546 const string& key, const string& value, RouteOptions* routes) { in ParseRouteOption() argument 547 IPConfig::Route* route = GetRouteOptionEntry("network_", key, routes); in ParseRouteOption() 552 route = GetRouteOptionEntry("netmask_", key, routes); in ParseRouteOption() 557 route = GetRouteOptionEntry("gateway_", key, routes); in ParseRouteOption() 566 void OpenVPNDriver::SetRoutes(const RouteOptions& routes, in SetRoutes() argument [all …]
|
D | openvpn_driver.h | 192 RouteOptions* routes); 195 RouteOptions* routes); 196 static void SetRoutes(const RouteOptions& routes,
|
D | third_party_vpn_driver.cc | 381 ip_properties_.routes.push_back(route); in SetParameters()
|
/system/connectivity/shill/dhcp/ |
D | dhcpv4_config.cc | 285 vector<IPConfig::Route> routes; in ParseClasslessStaticRoutes() local 324 routes.push_back(route); in ParseClasslessStaticRoutes() 330 if (!routes.empty()) { in ParseClasslessStaticRoutes() 331 properties->routes.swap(routes); in ParseClasslessStaticRoutes()
|
D | dhcpv4_config_unittest.cc | 255 EXPECT_TRUE(properties.routes.empty()); in TEST_F() 265 EXPECT_TRUE(properties.routes.empty()); in TEST_F() 279 EXPECT_EQ(2, properties.routes.size()); in TEST_F() 280 const IPConfig::Route& route0 = properties.routes[0]; in TEST_F() 285 const IPConfig::Route& route1 = properties.routes[1]; in TEST_F() 293 EXPECT_EQ(2, properties.routes.size()); in TEST_F()
|
/system/extras/tests/net_test/ |
D | net_test.py | 248 routes = open("/proc/net/ipv6_route").readlines() 249 for route in routes: 257 routes = open("/proc/net/route").readlines() 258 for route in routes:
|
D | multinetwork_test.py | 745 routes = self.iproute.GetRoutes(dstaddr, self.ifindices[netid], 0, None) 746 self.assertTrue(routes) 747 route = routes[0] 867 routes = self.iproute.GetRoutes(addr, oif, mark, uid) 868 rtmsg, _ = routes[0] 875 routes = self.iproute.GetRoutes(addr, oif, mark, uid) 876 rtmsg, _ = routes[0]
|
D | iproute.py | 496 routes = self._GetMsgList(RTMsg, data, False) 497 return routes
|
/system/connectivity/shill/ |
D | routing_table_unittest.cc | 507 vector<IPConfig::Route>& routes = properties.routes; in TEST_F() local 520 routes.push_back(route); in TEST_F() 549 routes.clear(); in TEST_F() 551 routes.push_back(route); in TEST_F() 554 routes.push_back(route); in TEST_F() 556 routes.push_back(route); in TEST_F()
|
D | routing_table.cc | 200 const vector<IPConfig::Route>& routes = ipconfig->properties().routes; in ConfigureRoutes() local 202 for (const auto& route : routes) { in ConfigureRoutes()
|
D | ipconfig.h | 87 std::vector<Route> routes; member
|
/system/sepolicy/ |
D | system_server.te | 81 # Set and get routes directly via netlink.
|
/system/connectivity/shill/doc/ |
D | service-api.txt | 775 this option does not ignore routes explicitly pushed
|