Home
last modified time | relevance | path

Searched refs:gateway (Results 1 – 25 of 41) sorted by relevance

12

/system/connectivity/shill/
Drouting_table_entry.h36 gateway(IPAddress::kFamilyUnknown), in RoutingTableEntry()
51 gateway(gateway_in), in RoutingTableEntry()
67 gateway(gateway_in), in RoutingTableEntry()
84 gateway(gateway_in), in RoutingTableEntry()
94 gateway(b.gateway), in RoutingTableEntry()
104 gateway = b.gateway;
119 gateway.Equals(b.gateway) && in Equals()
129 IPAddress gateway; member
Dconnection.cc165 IPAddress gateway(properties.address_family); in UpdateFromIPConfig() local
166 if (!properties.gateway.empty() && in UpdateFromIPConfig()
167 !gateway.SetAddressFromString(properties.gateway)) { in UpdateFromIPConfig()
168 LOG(ERROR) << "Gateway address " << properties.gateway << " is invalid"; in UpdateFromIPConfig()
195 if (!PinHostRoute(trusted_ip, gateway)) { in UpdateFromIPConfig()
228 if (!FixGatewayReachability(local, &peer, &gateway, trusted_ip)) { in UpdateFromIPConfig()
244 << " gateway=" << gateway.ToString(); in UpdateFromIPConfig()
247 if (gateway.IsValid() && properties.default_route) { in UpdateFromIPConfig()
248 routing_table_->SetDefaultRoute(interface_index_, gateway, in UpdateFromIPConfig()
298 gateway_ = gateway; in UpdateFromIPConfig()
[all …]
Dconnection_unittest.cc102 properties_.gateway = kGatewayAddress0; in SetUp()
146 const IPAddress gateway) { in PinHostRoute() argument
147 return connection->PinHostRoute(trusted_ip, gateway); in PinHostRoute()
270 !arg.src.IsValid() && !arg.gateway.IsValid() &&
503 properties_.gateway = string(); in TEST_F()
795 IPAddress gateway(IPAddress::kFamilyIPv4); in TEST_F() local
799 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F()
802 ASSERT_TRUE(gateway.SetAddressFromString(kGateway)); in TEST_F()
805 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F()
814 IPAddress(gateway.family()))); in TEST_F()
[all …]
Drouting_table.cc102 << " gateway " << entry.gateway.ToString() in AddRoute()
143 << " gateway " << nent.gateway.ToString() in GetDefaultRouteInternal()
165 if (old_entry->gateway.Equals(gateway_address)) { in SetDefaultRoute()
206 << " Gateway: " << route.gateway; in ConfigureRoutes()
216 if (!gateway_address.SetAddressFromString(route.gateway)) { in ConfigureRoutes()
218 << route.gateway; in ConfigureRoutes()
335 entry->gateway = IPAddress(message.family(), gateway_bytes); in ParseRoutingTableMessage()
378 if (add_entry.gateway.IsDefault()) { in RouteMsgHandler()
404 nent->gateway.Equals(entry.gateway) && in RouteMsgHandler()
421 << " gateway " << entry.gateway.ToString() in RouteMsgHandler()
[all …]
Dppp_device.cc98 properties.gateway = value; in ParseIPConfiguration()
121 if (properties.gateway.empty()) { in ParseIPConfiguration()
125 properties.gateway = properties.peer_address; in ParseIPConfiguration()
Dppp_device_unittest.cc66 EXPECT_EQ("192.168.1.1", props.gateway); in TEST()
78 EXPECT_EQ("33.44.55.66", props2.gateway); in TEST()
Dconnection.h138 virtual const IPAddress& gateway() const { return gateway_; } in gateway() function
182 IPAddress* gateway,
185 bool PinHostRoute(const IPAddress& trusted_ip, const IPAddress& gateway);
Dconnection_diagnostics.cc489 ReportResultAndStop(address.Equals(connection_->gateway()) in FindArpTableEntry()
580 Type event_type = address.Equals(connection_->gateway()) in PingHost()
816 ReportResultAndStop(address_queried.Equals(connection_->gateway()) in OnNeighborMsgReceived()
825 ReportResultAndStop(address_queried.Equals(connection_->gateway()) in OnNeighborMsgReceived()
837 ReportResultAndStop(address_queried.Equals(connection_->gateway()) in OnNeighborTableRequestTimeout()
856 entry.gateway.IsDefault() ? "remote" : "local")); in OnRouteQueryResponse()
857 if (!entry.gateway.IsDefault()) { in OnRouteQueryResponse()
861 weak_ptr_factory_.GetWeakPtr(), entry.gateway)); in OnRouteQueryResponse()
Drouting_table_unittest.cc211 arg->family() == entry.gateway.family() &&
226 ((!arg->HasAttribute(RTA_GATEWAY) && entry.gateway.IsDefault()) ||
228 arg->GetAttribute(RTA_GATEWAY)).Equals(entry.gateway))) &&
271 if (!entry.gateway.IsDefault()) { in SendRouteEntryWithSeqAndProto()
272 msg.SetAttribute(RTA_GATEWAY, entry.gateway.address()); in SendRouteEntryWithSeqAndProto()
519 route.gateway = kTestGatewayAddress4; in TEST_F()
550 route.gateway = "xxx"; // Invalid gateway entry -- should be skipped in TEST_F()
553 route.gateway = kTestGatewayAddress4; in TEST_F()
Dipconfig.h48 std::string gateway; member
69 std::string gateway; member
Dmock_connection.h48 MOCK_CONST_METHOD0(gateway, const IPAddress&());
Dipconfig_unittest.cc126 EXPECT_EQ(properties.gateway, ipconfig_->properties().gateway); in ExpectPropertiesEqual()
163 properties.gateway = "5.6.7.8"; in TEST_F()
Dstatic_ip_parameters_unittest.cc62 EXPECT_TRUE(ipconfig_props_.gateway.empty()); in ExpectEmptyIPConfig()
78 EXPECT_EQ(VersionedAddress(kGateway, version), ipconfig_props_.gateway); in ExpectPopulatedIPConfigWithVersion()
127 ipconfig_props_.gateway = kGateway; in PopulateIPConfig()
Dactive_link_monitor.cc261 if (!connection_->gateway().address().Equals( in ReceiveResponse()
329 ArpPacket request(connection_->local(), connection_->gateway(), in SendRequest()
/system/connectivity/shill/net/
Drtnl_message_unittest.cc459 const IPAddress& gateway, in TestParseRoute() argument
492 if (!gateway.IsDefault()) { in TestParseRoute()
495 msg.GetAttribute(RTA_GATEWAY)).Equals(gateway)); in TestParseRoute()
624 IPAddress gateway(IPAddress::kFamilyIPv6); in TEST_F() local
629 EXPECT_TRUE(gateway.SetAddressFromString(kDelRouteIPV6Address)); in TEST_F()
637 gateway, in TEST_F()
648 IPAddress gateway(IPAddress::kFamilyIPv4); in TEST_F() local
652 EXPECT_TRUE(gateway.SetAddressFromString(kAddRouteIPV4Address)); in TEST_F()
660 gateway, in TEST_F()
723 IPAddress gateway(IPAddress::kFamilyIPv4); in TEST_F() local
[all …]
Drtnl_handler.h92 const IPAddress& gateway,
163 const IPAddress& gateway,
/system/connectivity/shill/dhcp/
Ddhcpv4_config.cc304 IPAddress gateway(IPAddress::kFamilyIPv4); in ParseClasslessStaticRoutes() local
305 if (!gateway.SetAddressFromString(gateway_as_string)) { in ParseClasslessStaticRoutes()
311 if (destination.prefix() == 0 && properties->gateway.empty()) { in ParseClasslessStaticRoutes()
316 CHECK(gateway.IntoString(&properties->gateway)); in ParseClasslessStaticRoutes()
323 CHECK(gateway.IntoString(&route.gateway)); in ParseClasslessStaticRoutes()
368 properties->gateway = GetIPv4AddressString(routers[0]); in ParseConfiguration()
369 if (properties->gateway.empty()) { in ParseConfiguration()
409 if (default_gateway_parse_error && properties->gateway.empty()) { in ParseConfiguration()
Ddhcpv4_config_unittest.cc256 EXPECT_TRUE(properties.gateway.empty()); in TEST_F()
266 EXPECT_EQ(kRouter0, properties.gateway); in TEST_F()
275 EXPECT_EQ(kRouter0, properties.gateway); in TEST_F()
283 EXPECT_EQ(kRouter2, route0.gateway); in TEST_F()
288 EXPECT_EQ(kRouter1, route1.gateway); in TEST_F()
294 EXPECT_EQ(kRouter0, properties.gateway); in TEST_F()
332 EXPECT_EQ("8.6.4.2", properties.gateway); in TEST_F()
/system/netd/server/
DNetlinkHandler.cpp112 const char *gateway = evt->findParam("GATEWAY"); in onEvent() local
114 if (route && (gateway || iface)) { in onEvent()
115 notifyRouteChange(action, route, gateway, iface); in onEvent()
213 const char *gateway, const char *iface) { in notifyRouteChange() argument
218 *gateway ? " via " : "", in notifyRouteChange()
219 gateway, in notifyRouteChange()
DNetlinkHandler.h49 …void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const …
/system/connectivity/shill/test-scripts/
Drouting.py48 self.gateway = int(gway, 16)
63 intToDottedQuad(self.gateway),
105 gateway = route[colMap["Gateway"]]
109 Route(interface, destination, gateway, flags, mask))
/system/core/libnetutils/
Ddhcpclient.c104 uint32_t gateway; member
116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, in get_dhcp_info() argument
121 *gateway = last_good_info.gateway; in get_dhcp_info()
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
157 strcpy(gway, ipaddr(info->gateway)); in dump_dhcp_info()
207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg()
/system/core/include/netutils/
Difc.h59 uint32_t prefixLength, in_addr_t gateway,
/system/connectivity/shill/vpn/
Dopenvpn_driver_unittest.cc528 EXPECT_EQ(kGateway1, routes[1].gateway); in TEST_F()
531 EXPECT_EQ(kGateway2, routes[2].gateway); in TEST_F()
538 routes[1].gateway = "1.2.3.4"; in TEST_F()
543 routes[3].gateway = "1.2.3.5"; in TEST_F()
546 routes[5].gateway = kGateway2; in TEST_F()
549 routes[4].gateway = kGateway1; in TEST_F()
553 EXPECT_EQ(kGateway1, props.routes[0].gateway); in TEST_F()
556 EXPECT_EQ(kGateway2, props.routes[1].gateway); in TEST_F()
676 EXPECT_EQ("192.168.1.1", props.gateway); in TEST_F()
685 EXPECT_EQ(kGateway1, props.routes[0].gateway); in TEST_F()
[all …]
/system/connectivity/shill/cellular/
Dcellular_bearer_unittest.cc123 EXPECT_EQ(kIPv4Gateway, ipv4_config_properties->gateway); in VerifyStaticIPv4ConfigMethodAndProperties()
138 EXPECT_EQ(kIPv6Gateway, ipv6_config_properties->gateway); in VerifyStaticIPv6ConfigMethodAndProperties()

12