Home
last modified time | relevance | path

Searched refs:subnet_prefix (Results 1 – 19 of 19) sorted by relevance

/system/connectivity/shill/net/
Dip_address.cc146 int subnet_prefix = 0; in GetPrefixLengthFromMask() local
148 subnet_prefix++; in GetPrefixLengthFromMask()
151 return subnet_prefix; in GetPrefixLengthFromMask()
/system/connectivity/shill/
Dipconfig.h53 subnet_prefix(0), in Properties()
63 int32_t subnet_prefix; member
Dipconfig_unittest.cc105 EXPECT_EQ(properties.subnet_prefix, ipconfig_->properties().subnet_prefix); in ExpectPropertiesEqual()
156 properties.subnet_prefix = 24; in TEST_F()
Dppp_device_unittest.cc63 props.subnet_prefix); in TEST()
Dstatic_ip_parameters_unittest.cc66 EXPECT_FALSE(ipconfig_props_.subnet_prefix); in ExpectEmptyIPConfig()
87 EXPECT_EQ(kPrefixLen + version, ipconfig_props_.subnet_prefix); in ExpectPopulatedIPConfigWithVersion()
132 ipconfig_props_.subnet_prefix = kPrefixLen; in PopulateIPConfig()
Dppp_device.cc87 properties.subnet_prefix = IPAddress::GetMaxPrefixLength( in ParseIPConfiguration()
Dipconfig.cc93 store_.RegisterConstInt32(kPrefixlenProperty, &properties_.subnet_prefix); in Init()
Dstatic_ip_parameters.cc274 ApplyInt(kPrefixlenProperty, &props->subnet_prefix); in ApplyTo()
286 props->subnet_prefix = saved_args_.LookupInt(kPrefixlenProperty, 0); in RestoreTo()
Ddevice.cc569 properties.subnet_prefix = address.prefix(); in OnIPv6AddressChanged()
574 properties.subnet_prefix == in OnIPv6AddressChanged()
575 ip6config_->properties().subnet_prefix) { in OnIPv6AddressChanged()
Dconnection.cc206 local.set_prefix(properties.subnet_prefix); in UpdateFromIPConfig()
Dconnection_unittest.cc101 properties_.subnet_prefix = kPrefix0; in SetUp()
528 properties_.subnet_prefix = kPrefix1; in TEST_F()
/system/connectivity/shill/cellular/
Dcellular_bearer_unittest.cc124 EXPECT_EQ(kIPv4SubnetPrefix, ipv4_config_properties->subnet_prefix); in VerifyStaticIPv4ConfigMethodAndProperties()
139 EXPECT_EQ(kIPv6SubnetPrefix, ipv6_config_properties->subnet_prefix); in VerifyStaticIPv6ConfigMethodAndProperties()
Dcellular_bearer.cc138 (*ipconfig_properties)->subnet_prefix = prefix; in GetIPConfigMethodAndProperties()
Dcellular_unittest.cc2121 ipconfig_properties->subnet_prefix = kSubnetPrefix; in TEST_F()
2143 EXPECT_EQ(kSubnetPrefix, device_->ipconfig()->properties().subnet_prefix); in TEST_F()
/system/connectivity/shill/vpn/
Dopenvpn_driver.cc414 if (!properties->subnet_prefix) { in ParseIPConfiguration()
415 properties->subnet_prefix = in ParseIPConfiguration()
427 properties->subnet_prefix = in ParseIPConfiguration()
440 properties->subnet_prefix = in ParseIPConfiguration()
Dopenvpn_driver_unittest.cc640 EXPECT_EQ(32, props.subnet_prefix); in TEST_F()
642 props.subnet_prefix = 18; in TEST_F()
644 EXPECT_EQ(18, props.subnet_prefix); in TEST_F()
650 EXPECT_EQ(16, props.subnet_prefix); in TEST_F()
674 EXPECT_EQ(24, props.subnet_prefix); in TEST_F()
Dthird_party_vpn_driver.cc332 &ip_properties_.subnet_prefix, 0, 32, true, error_message); in SetParameters()
/system/connectivity/shill/dhcp/
Ddhcpv4_config.cc355 properties->subnet_prefix = value.Get<uint8_t>(); in ParseConfiguration()
Ddhcpv4_config_unittest.cc330 EXPECT_EQ(16, properties.subnet_prefix); in TEST_F()