/system/connectivity/shill/test-scripts/ |
H A D | routing.py | 22 information about all routes, and Route, which describes 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 in class:NetworkRoutes 144 if routes == None: 147 for each_route in routes 161 routes = NetworkRoutes([ variable in class:NetworkRoutes [all...] |
/system/connectivity/shill/vpn/ |
H A D | openvpn_driver_unittest.cc | 499 OpenVPNDriver::RouteOptions routes; local 500 EXPECT_EQ(nullptr, OpenVPNDriver::GetRouteOptionEntry("foo", "bar", &routes)); 501 EXPECT_TRUE(routes.empty()); 502 EXPECT_EQ(nullptr, OpenVPNDriver::GetRouteOptionEntry("foo", "foo", &routes)); 503 EXPECT_TRUE(routes.empty()); 505 OpenVPNDriver::GetRouteOptionEntry("foo", "fooz", &routes)); 506 EXPECT_TRUE(routes.empty()); 508 OpenVPNDriver::GetRouteOptionEntry("foo", "foo12", &routes); 509 EXPECT_EQ(1, routes.size()); 510 EXPECT_EQ(route, &routes[1 517 OpenVPNDriver::RouteOptions routes; local 537 OpenVPNDriver::RouteOptions routes; local [all...] |
H A D | third_party_vpn_driver_unittest.cc | 293 EXPECT_EQ(driver_->ip_properties_.routes.size(), 2); 294 EXPECT_EQ(driver_->ip_properties_.routes[0].host, "123.211.61.29"); 295 EXPECT_EQ(driver_->ip_properties_.routes[1].host, "123.211.42.29"); 296 EXPECT_EQ(driver_->ip_properties_.routes[0].netmask, "254.0.0.0"); 297 EXPECT_EQ(driver_->ip_properties_.routes[1].netmask, "255.255.128.0"); 298 EXPECT_EQ(driver_->ip_properties_.routes[0].gateway, parameters["address"]); 299 EXPECT_EQ(driver_->ip_properties_.routes[1].gateway, parameters["address"]);
|
H A D | openvpn_driver.cc | 410 RouteOptions routes; local 475 value, &routes); 481 SetRoutes(routes, properties); 535 const string& prefix, const string& key, RouteOptions* routes) { 541 return&(*routes)[order]; 546 const string& key, const string& value, RouteOptions* routes) { 547 IPConfig::Route* route = GetRouteOptionEntry("network_", key, routes); 552 route = GetRouteOptionEntry("netmask_", key, routes); 557 route = GetRouteOptionEntry("gateway_", key, routes); 566 void OpenVPNDriver::SetRoutes(const RouteOptions& routes, argument 534 GetRouteOptionEntry( const string& prefix, const string& key, RouteOptions* routes) argument 545 ParseRouteOption( const string& key, const string& value, RouteOptions* routes) argument [all...] |
H A D | openvpn_driver.h | 192 RouteOptions* routes); 195 RouteOptions* routes); 196 static void SetRoutes(const RouteOptions& routes,
|
H A D | third_party_vpn_driver.cc | 381 ip_properties_.routes.push_back(route);
|
/system/extras/tests/net_test/ |
H A 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:
|
H A D | multinetwork_test.py | 199 @unittest.skipUnless(multinetwork_base.HAVE_UID_ROUTING, "no UID routes") 564 @unittest.skipUnless(multinetwork_base.HAVE_UID_ROUTING, "no UID routes") 568 @unittest.skipUnless(multinetwork_base.HAVE_UID_ROUTING, "no UID routes") 745 routes = self.iproute.GetRoutes(dstaddr, self.ifindices[netid], 0, None) 746 self.assertTrue(routes) 747 route = routes[0] 771 @unittest.skipUnless(multinetwork_base.HAVE_UID_ROUTING, "no UID routes") 776 @unittest.skipUnless(multinetwork_base.HAVE_UID_ROUTING, "no UID routes") 801 @unittest.skipUnless(multinetwork_base.HAVE_UID_ROUTING, "no UID routes") 867 routes [all...] |
H A D | iproute.py | 463 # Don't allow setting routes in table 0, since its behaviour is confusing 493 # The response will either be an error or a list of routes. 496 routes = self._GetMsgList(RTMsg, data, False) 497 return routes
|
/system/connectivity/shill/dhcp/ |
H A D | dhcpv4_config.cc | 285 vector<IPConfig::Route> routes; local 287 // Classless routes are a space-delimited array of 324 routes.push_back(route); 330 if (!routes.empty()) { 331 properties->routes.swap(routes);
|
H A D | dhcpv4_config_unittest.cc | 255 EXPECT_TRUE(properties.routes.empty()); 265 EXPECT_TRUE(properties.routes.empty()); 277 // The two routes (including the one which would have otherwise been 279 EXPECT_EQ(2, properties.routes.size()); 280 const IPConfig::Route& route0 = properties.routes[0]; 285 const IPConfig::Route& route1 = properties.routes[1]; 293 EXPECT_EQ(2, properties.routes.size());
|
/system/connectivity/shill/ |
H A D | routing_table_unittest.cc | 507 vector<IPConfig::Route>& routes = properties.routes; local 520 routes.push_back(route); 549 routes.clear(); 551 routes.push_back(route); 554 routes.push_back(route); 556 routes.push_back(route); 653 // Ask to flush routes with our tag. We should see a delete message sent. 662 // After flushing routes for this tag, we should end up with no routes [all...] |
H A D | routing_table.cc | 200 const vector<IPConfig::Route>& routes = ipconfig->properties().routes; local 202 for (const auto& route : routes) { 470 // Somewhat surprisingly, the kernel allows you to create multiple routes
|
H A D | ipconfig.h | 87 std::vector<Route> routes; member in struct:shill::IPConfig::Properties
|