Home
last modified time | relevance | path

Searched refs:routes (Results 1 – 16 of 16) sorted by relevance

/system/connectivity/shill/test-scripts/
Drouting.py100 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/
Dopenvpn_driver_unittest.cc499 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 …]
Dthird_party_vpn_driver_unittest.cc293 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()
Dopenvpn_driver.cc410 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 …]
Dopenvpn_driver.h192 RouteOptions* routes);
195 RouteOptions* routes);
196 static void SetRoutes(const RouteOptions& routes,
Dthird_party_vpn_driver.cc381 ip_properties_.routes.push_back(route); in SetParameters()
/system/connectivity/shill/dhcp/
Ddhcpv4_config.cc285 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()
Ddhcpv4_config_unittest.cc255 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/
Dnet_test.py248 routes = open("/proc/net/ipv6_route").readlines()
249 for route in routes:
257 routes = open("/proc/net/route").readlines()
258 for route in routes:
Dmultinetwork_test.py745 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]
Diproute.py496 routes = self._GetMsgList(RTMsg, data, False)
497 return routes
/system/connectivity/shill/
Drouting_table_unittest.cc507 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()
Drouting_table.cc200 const vector<IPConfig::Route>& routes = ipconfig->properties().routes; in ConfigureRoutes() local
202 for (const auto& route : routes) { in ConfigureRoutes()
Dipconfig.h87 std::vector<Route> routes; member
/system/sepolicy/
Dsystem_server.te81 # Set and get routes directly via netlink.
/system/connectivity/shill/doc/
Dservice-api.txt775 this option does not ignore routes explicitly pushed