Home
last modified time | relevance | path

Searched refs:ip_properties_ (Results 1 – 6 of 6) sorted by relevance

/system/connectivity/shill/vpn/
Dthird_party_vpn_driver.cc321 ip_properties_ = IPConfig::Properties(); in SetParameters()
322 ip_properties_.address_family = IPAddress::kFamilyIPv4; in SetParameters()
324 ProcessIp(parameters, kAddressParameterThirdPartyVpn, &ip_properties_.address, in SetParameters()
327 &ip_properties_.broadcast_address, false, error_message); in SetParameters()
329 ip_properties_.gateway = ip_properties_.address; in SetParameters()
332 &ip_properties_.subnet_prefix, 0, 32, true, error_message); in SetParameters()
333 ProcessInt32(parameters, kMtuParameterThirdPartyVpn, &ip_properties_.mtu, in SetParameters()
337 kNonIPDelimiter, &ip_properties_.domain_search, in SetParameters()
340 &ip_properties_.dns_servers, true, error_message, in SetParameters()
346 kIPDelimiter, &ip_properties_.exclusion_list, true, in SetParameters()
[all …]
Dthird_party_vpn_driver_unittest.cc289 EXPECT_EQ(driver_->ip_properties_.exclusion_list.size(), 3); in TEST_F()
290 EXPECT_EQ(driver_->ip_properties_.exclusion_list[0], "123.211.21.29/31"); in TEST_F()
291 EXPECT_EQ(driver_->ip_properties_.exclusion_list[1], "0.0.0.0/0"); in TEST_F()
292 EXPECT_EQ(driver_->ip_properties_.exclusion_list[2], "123.211.21.1/24"); in TEST_F()
293 EXPECT_EQ(driver_->ip_properties_.routes.size(), 2); in TEST_F()
294 EXPECT_EQ(driver_->ip_properties_.routes[0].host, "123.211.61.29"); in TEST_F()
295 EXPECT_EQ(driver_->ip_properties_.routes[1].host, "123.211.42.29"); in TEST_F()
296 EXPECT_EQ(driver_->ip_properties_.routes[0].netmask, "254.0.0.0"); in TEST_F()
297 EXPECT_EQ(driver_->ip_properties_.routes[1].netmask, "255.255.128.0"); in TEST_F()
298 EXPECT_EQ(driver_->ip_properties_.routes[0].gateway, parameters["address"]); in TEST_F()
[all …]
Dthird_party_vpn_driver.h209 IPConfig::Properties ip_properties_; variable
Dopenvpn_driver.cc257 ip_properties_ = IPConfig::Properties(); in Cleanup()
399 ParseIPConfiguration(dict, &ip_properties_); in Notify()
401 device_->UpdateIPConfig(ip_properties_); in Notify()
Dopenvpn_driver.h285 IPConfig::Properties ip_properties_; variable
Dopenvpn_driver_unittest.cc384 driver_->ip_properties_.address = "1.2.3.4"; in TEST_F()
1183 driver_->ip_properties_.address = "1.2.3.4"; in TEST_F()
1212 EXPECT_TRUE(driver_->ip_properties_.address.empty()); in TEST_F()