/system/connectivity/shill/ |
H A D | routing_table_entry.h | 36 gateway(IPAddress::kFamilyUnknown), 51 gateway(gateway_in), 67 gateway(gateway_in), 84 gateway(gateway_in), 94 gateway(b.gateway), 104 gateway = b.gateway; 119 gateway.Equals(b.gateway) 129 IPAddress gateway; member in struct:shill::RoutingTableEntry [all...] |
H A D | connection.h | 138 virtual const IPAddress& gateway() const { return gateway_; } function in class:shill::Connection 178 // Work around misconfigured servers which provide a gateway address that 182 IPAddress* gateway, 185 bool PinHostRoute(const IPAddress& trusted_ip, const IPAddress& gateway);
|
H A D | connection.cc | 165 IPAddress gateway(properties.address_family); 166 if (!properties.gateway.empty() && 167 !gateway.SetAddressFromString(properties.gateway)) { 168 LOG(ERROR) << "Gateway address " << properties.gateway << " is invalid"; 179 // such as eth0 or wan0. The excluded IPs are pinned to the gateway of 195 if (!PinHostRoute(trusted_ip, gateway)) { 228 if (!FixGatewayReachability(local, &peer, &gateway, trusted_ip)) { 244 << " gateway=" << gateway 449 FixGatewayReachability(const IPAddress& local, IPAddress* peer, IPAddress* gateway, const IPAddress& trusted_ip) argument 565 PinHostRoute(const IPAddress& trusted_ip, const IPAddress& gateway) argument [all...] |
H A D | ipconfig.h | 48 std::string gateway; member in struct:shill::IPConfig::Route 69 std::string gateway; member in struct:shill::IPConfig::Properties
|
H A D | connection_unittest.cc | 102 properties_.gateway = kGatewayAddress0; 146 const IPAddress gateway) { 147 return connection->PinHostRoute(trusted_ip, gateway); 270 !arg.src.IsValid() && !arg.gateway.IsValid() && 503 properties_.gateway = string(); 527 // Assign a prefix that makes the gateway unreachable. 532 // gateway to be reachable. 795 IPAddress gateway(IPAddress::kFamilyIPv4); 799 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); 802 ASSERT_TRUE(gateway 144 PinHostRoute(ConnectionRefPtr connection, const IPAddress trusted_ip, const IPAddress gateway) argument [all...] |
/system/netd/server/ |
H A D | NetlinkHandler.cpp | 112 const char *gateway = evt->findParam("GATEWAY"); local 114 if (route && (gateway || iface)) { 115 notifyRouteChange(action, route, gateway, iface); 213 const char *gateway, const char *iface) { 218 *gateway ? " via " : "", 219 gateway, 212 notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface) argument
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 104 uint32_t gateway; member in struct:dhcp_info 116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, argument 121 *gateway = last_good_info.gateway; 132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, 157 strcpy(gway, ipaddr(info->gateway)); 207 if (optlen >= 4) memcpy(&info->gateway, x, 4);
|
H A D | ifc_utils.c | 694 in_addr_t gateway, 717 if (ifc_create_default_route(ifname, gateway)) { 718 printerr("failed to set default route %s: %s\n", ipaddr_to_string(gateway), strerror(errno)); 691 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument
|
/system/connectivity/shill/net/ |
H A D | rtnl_message_unittest.cc | 459 const IPAddress& gateway, 492 if (!gateway.IsDefault()) { 495 msg.GetAttribute(RTA_GATEWAY)).Equals(gateway)); 624 IPAddress gateway(IPAddress::kFamilyIPv6); 629 EXPECT_TRUE(gateway.SetAddressFromString(kDelRouteIPV6Address)); 637 gateway, local 648 IPAddress gateway(IPAddress::kFamilyIPv4); 652 EXPECT_TRUE(gateway.SetAddressFromString(kAddRouteIPV4Address)); 660 gateway, local 723 IPAddress gateway(IPAddres 453 TestParseRoute(const ByteString& packet, RTNLMessage::Mode , IPAddress::Family family, int interface_index, const IPAddress& dst, const IPAddress& src, const IPAddress& gateway, unsigned char table, int protocol, unsigned char scope, unsigned char type, int metric) argument [all...] |