Searched refs:trusted_ip (Results 1 – 3 of 3) sorted by relevance
/system/connectivity/shill/ |
D | connection.cc | 174 IPAddress trusted_ip(properties.address_family); in UpdateFromIPConfig() local 190 if (!trusted_ip.SetAddressAndPrefixFromString(first_excluded_ip)) { in UpdateFromIPConfig() 195 if (!PinHostRoute(trusted_ip, gateway)) { in UpdateFromIPConfig() 228 if (!FixGatewayReachability(local, &peer, &gateway, trusted_ip)) { in UpdateFromIPConfig() 452 const IPAddress& trusted_ip) { in FixGatewayReachability() argument 457 << ", trusted_ip " << trusted_ip.ToString(); in FixGatewayReachability() 471 if (gateway->HasSameAddressAs(trusted_ip)) { in FixGatewayReachability() 565 bool Connection::PinHostRoute(const IPAddress& trusted_ip, in PinHostRoute() argument 568 if (!trusted_ip.IsValid()) { in PinHostRoute() 581 return RequestHostRoute(trusted_ip); in PinHostRoute()
|
D | connection_unittest.cc | 145 const IPAddress trusted_ip, in PinHostRoute() argument 147 return connection->PinHostRoute(trusted_ip, gateway); in PinHostRoute() 796 IPAddress trusted_ip(IPAddress::kFamilyIPv4); in TEST_F() local 799 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F() 805 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F() 808 ASSERT_TRUE(trusted_ip.SetAddressAndPrefixFromString(kTrustedIP)); in TEST_F() 813 EXPECT_TRUE(PinHostRoute(connection, trusted_ip, in TEST_F() 818 RequestRouteToHost(IsIPAddress(trusted_ip, trusted_ip.prefix()), in TEST_F() 821 EXPECT_FALSE(PinHostRoute(connection, trusted_ip, gateway)); in TEST_F() 824 RequestRouteToHost(IsIPAddress(trusted_ip, trusted_ip.prefix()), in TEST_F() [all …]
|
D | connection.h | 183 const IPAddress& trusted_ip); 185 bool PinHostRoute(const IPAddress& trusted_ip, const IPAddress& gateway);
|