/system/connectivity/shill/test-scripts/ |
H A D | veth | 31 route add -host 255.255.255.255 dev "$peer_iface" 45 route del -host 255.255.255.255
|
H A D | routing.py | 26 ROUTES_FILE = "/proc/net/route" 27 # The following constants are from <net/route.h> 102 route = routeline.split() 103 interface = route[colMap["Iface"]] 104 destination = route[colMap["Destination"]] 105 gateway = route[colMap["Gateway"]] 106 flags = route[colMap["Flags"]] 107 mask = route[colMap["Mask"]]
|
H A D | backchannel | 21 # the default route. 79 ip route add "$ip" via "$gw" dev "$test_if"
|
/system/extras/tests/net_test/ |
H A D | net_test.py | 249 for route in routes: 250 route = [s for s in route.strip().split(" ") if s] 251 if (route[0] == "00000000000000000000000000000000" and route[1] == "00" 253 and route[9] != "lo" and not route[9].startswith("nettest")): 254 return FormatProcAddress(route[4]), route[9] 255 raise ValueError("No IPv6 default route foun [all...] |
H A D | multinetwork_test.py | 580 "/proc/sys/net/ipv6/route/autoconf_table_offset")) 744 # Also check the MTU reported by ip route get, this time using the oif. 747 route = routes[0] 748 rtmsg, attributes = route 784 # correct route. 865 # The lack of a route may be either an error, or an unreachable route.
|
/system/netd/server/ |
H A D | NetlinkHandler.h | 49 void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
|
H A D | NetlinkHandler.cpp | 111 const char *route = evt->findParam("ROUTE"); local 114 if (route && (gateway || iface)) { 115 notifyRouteChange(action, route, gateway, iface); 212 void NetlinkHandler::notifyRouteChange(NetlinkEvent::Action action, const char *route, argument 217 route,
|
H A D | RouteController.cpp | 359 // Adds or deletes an IPv4 or IPv6 route. 418 rtmsg route = { local 431 { &route, sizeof(route) }, 450 // + Use the right fwmark for (and thus correctly route) replies (e.g.: TCP RST, ICMP errors, ping 475 // A rule to route responses to the local network forwarded via the VPN. 485 // A rule to route all traffic from a given set of UIDs to go over the VPN. 535 // A rule to route traffic based on an explicitly chosen network. 561 // A rule to route traffic based on a chosen outgoing interface. 588 // A rule to route traffi [all...] |
/system/bt/tools/hci/ |
H A D | main.c | 41 { "setScoRoute", "(pcm|i2s|uart) - sets the SCO packet route to one of the specified buses.", set_sco_route }, 127 printf("SCO route parameter must be specified.\n"); 131 uint8_t route = 0xFF; local 133 route = 0; 135 route = 3; 137 route = 1; 139 if (route == 0xFF) { 140 printf("Invalid SCO route specified: %s\n", argv[0]); 145 packet[3] = route;
|
/system/bt/btif/co/ |
H A D | bta_dm_co.c | 218 tBTM_SCO_ROUTE_TYPE route = BTA_DM_SCO_ROUTE_PCM; local 232 route = btui_cb.sco_hci = BTA_DM_SCO_ROUTE_HCI; 235 if (p_codec_type->codec_type == BTA_SCO_CODEC_PCM && route == BTA_DM_SCO_ROUTE_HCI) 244 return route;
|
/system/connectivity/shill/ |
H A D | routing_table.cc | 67 const char RoutingTable::kRouteFlushPath4[] = "/proc/sys/net/ipv4/route/flush"; 69 const char RoutingTable::kRouteFlushPath6[] = "/proc/sys/net/ipv6/route/flush"; 149 SLOG(this, 2) << __func__ << " no route"; 202 for (const auto& route : routes) { 203 SLOG(this, 3) << "Installing route:" 204 << " Destination: " << route.host 205 << " Netmask: " << route.netmask 206 << " Gateway: " << route.gateway; 210 if (!destination_address.SetAddressFromString(route.host)) { 212 << route [all...] |
H A D | routing_table_unittest.cc | 349 // Add a second gateway route to the second interface. 363 // Remove the first gateway route from the second interface. 368 // We should be back to having one route per table. 376 // Send a duplicate of the second gateway route message, changing the metric. 408 // Add a route to a gateway address. 431 // Setting the same route on the interface with a different metric should 432 // push the route with different flags to indicate we are replacing it, 451 // Test that removing the table causes the route to disappear. 459 // When we set the metric on an existing route, a new add and delete 475 // for the default route fo 516 IPConfig::Route route; local [all...] |
/system/connectivity/shill/vpn/ |
H A D | openvpn_driver.cc | 485 LOG(INFO) << "Configuration request to ignore default route is " 488 SLOG(this, 2) << "Ignoring default route parameter as requested by " 547 IPConfig::Route* route = GetRouteOptionEntry("network_", key, routes); local 548 if (route) { 549 route->host = value; 552 route = GetRouteOptionEntry("netmask_", key, routes); 553 if (route) { 554 route->netmask = value; 557 route = GetRouteOptionEntry("gateway_", key, routes); 558 if (route) { 570 const IPConfig::Route& route = route_map.second; local [all...] |
H A D | third_party_vpn_driver.cc | 350 // finds the default gateway does not work for default route "0.0.0.0/0". 360 // be cleared since the default behavior is to not route any traffic to 373 IPConfig::Route route; local 374 route.gateway = ip_properties_.gateway; 378 ip_address.IntoString(&route.host); 380 ip_address.family(), ip_address.prefix()).IntoString(&route.netmask); 381 ip_properties_.routes.push_back(route);
|
H A D | openvpn_driver_unittest.cc | 507 IPConfig::Route* route = local 510 EXPECT_EQ(route, &routes[12]); 511 route = OpenVPNDriver::GetRouteOptionEntry("foo", "foo13", &routes); 513 EXPECT_EQ(route, &routes[13]);
|
/system/connectivity/shill/dhcp/ |
H A D | dhcpv4_config.cc | 312 // If a default route is provided in the classless parameters and 313 // we don't already have one, apply this as the default route. 318 IPConfig::Route route; local 319 CHECK(destination.IntoString(&route.host)); 322 CHECK(netmask.IntoString(&route.netmask)); 323 CHECK(gateway.IntoString(&route.gateway)); 324 routes.push_back(route); 325 SLOG(nullptr, 2) << "In " << __func__ << ": Adding route to to "
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 36 #include <linux/route.h> 671 * Removes the default route for the named interface. 684 ALOGD("failed to remove default route for %s: %s", ifname, strerror(errno)); 718 printerr("failed to set default route %s: %s\n", ipaddr_to_string(gateway), strerror(errno));
|