Home
last modified time | relevance | path

Searched refs:SetAddressAndPrefixFromString (Results 1 – 7 of 7) sorted by relevance

/system/connectivity/shill/net/
Dip_address_unittest.cc172 TEST_F(IPAddressTest, SetAddressAndPrefixFromString) { in TEST_F() argument
176 EXPECT_FALSE(address.SetAddressAndPrefixFromString("")); in TEST_F()
177 EXPECT_FALSE(address.SetAddressAndPrefixFromString(kString1)); in TEST_F()
178 EXPECT_FALSE(address.SetAddressAndPrefixFromString(kString1 + "/")); in TEST_F()
179 EXPECT_FALSE(address.SetAddressAndPrefixFromString(kString1 + "/10x")); in TEST_F()
180 EXPECT_FALSE(address.SetAddressAndPrefixFromString(kString2 + "/10")); in TEST_F()
181 EXPECT_TRUE(address.SetAddressAndPrefixFromString(kString1 + "/0")); in TEST_F()
183 EXPECT_TRUE(address.SetAddressAndPrefixFromString(kString1 + "/32")); in TEST_F()
185 EXPECT_FALSE(address.SetAddressAndPrefixFromString(kString1 + "/33")); in TEST_F()
186 EXPECT_FALSE(address.SetAddressAndPrefixFromString(kString1 + "/-1")); in TEST_F()
[all …]
Dip_address.h112 bool SetAddressAndPrefixFromString(const std::string& address_string);
Dip_address.cc213 bool IPAddress::SetAddressAndPrefixFromString(const string& address_string) { in SetAddressAndPrefixFromString() function in shill::IPAddress
/system/connectivity/shill/vpn/
Dthird_party_vpn_driver.cc247 if (!address.SetAddressAndPrefixFromString(*value)) { in ProcessIPArrayCIDR()
353 address.SetAddressAndPrefixFromString(ip_properties_.exclusion_list[0]); in SetParameters()
377 ip_address.SetAddressAndPrefixFromString(*value); in SetParameters()
/system/connectivity/shill/
Dconnection.cc190 if (!trusted_ip.SetAddressAndPrefixFromString(first_excluded_ip)) { in UpdateFromIPConfig()
430 if (!entry.dst.SetAddressAndPrefixFromString(*excluded_ip) || in PinPendingRoutes()
Dconnection_unittest.cc369 EXPECT_TRUE(address1.SetAddressAndPrefixFromString(kExcludeAddress1)); in TEST_F()
370 EXPECT_TRUE(address2.SetAddressAndPrefixFromString(kExcludeAddress2)); in TEST_F()
808 ASSERT_TRUE(trusted_ip.SetAddressAndPrefixFromString(kTrustedIP)); in TEST_F()
914 ASSERT_TRUE(trusted_ip.SetAddressAndPrefixFromString( in TEST_F()
/system/connectivity/shill/dhcp/
Ddhcpv4_config.cc294 if (!destination.SetAddressAndPrefixFromString( in ParseClasslessStaticRoutes()