Home
last modified time | relevance | path

Searched refs:kFamilyIPv4 (Results 1 – 25 of 55) sorted by relevance

123

/system/connectivity/shill/net/
Dip_address_unittest.cc123 EXPECT_EQ(4, IPAddress::GetAddressLength(IPAddress::kFamilyIPv4)); in TEST_F()
126 EXPECT_EQ(0, IPAddress::GetPrefixLengthFromMask(IPAddress::kFamilyIPv4, in TEST_F()
128 EXPECT_EQ(20, IPAddress::GetPrefixLengthFromMask(IPAddress::kFamilyIPv4, in TEST_F()
130 EXPECT_EQ(32, IPAddress::GetPrefixLengthFromMask(IPAddress::kFamilyIPv4, in TEST_F()
132 EXPECT_EQ(32, IPAddress::GetPrefixLengthFromMask(IPAddress::kFamilyIPv4, in TEST_F()
134 EXPECT_EQ(32, IPAddress::GetPrefixLengthFromMask(IPAddress::kFamilyIPv4, in TEST_F()
137 IPAddress addr4(IPAddress::kFamilyIPv4); in TEST_F()
141 EXPECT_EQ(IPAddress::kFamilyIPv4, addr4.family()); in TEST_F()
160 TestAddress(IPAddress::kFamilyIPv4, in TEST_F()
173 IPAddress address(IPAddress::kFamilyIPv4); in TEST_F()
[all …]
Drtnl_message_unittest.cc598 IPAddress addr(IPAddress::kFamilyIPv4); in TEST_F()
646 IPAddress dst(IPAddress::kFamilyIPv4); in TEST_F()
647 IPAddress src(IPAddress::kFamilyIPv4); in TEST_F()
648 IPAddress gateway(IPAddress::kFamilyIPv4); in TEST_F()
656 IPAddress::kFamilyIPv4, in TEST_F()
692 IPAddress::kFamilyIPv4, in TEST_F()
703 IPAddress::kFamilyIPv4); in TEST_F()
709 IPAddress::kFamilyIPv4, in TEST_F()
720 IPAddress::kFamilyIPv4); in TEST_F()
721 IPAddress dst(IPAddress::kFamilyIPv4); in TEST_F()
[all …]
Dip_address.cc43 const IPAddress::Family IPAddress::kFamilyIPv4 = AF_INET; member in shill::IPAddress
72 family_ = IPAddress::kFamilyIPv4; in IPAddress()
84 if (address_struct->sa_family == kFamilyIPv4 && size >= sizeof(sockaddr_in)) { in IPAddress()
104 case kFamilyIPv4: in GetAddressLength()
119 if (family() != kFamilyIPv4) { in GetMinPrefixLength()
144 case kFamilyIPv4: { in GetPrefixLengthFromMask()
189 case kFamilyIPv4: in GetAddressFamilyName()
259 if (family_ == kFamilyIPv4 && size >= sizeof(sockaddr_in)) { in IntoSockAddr()
Dip_address.h33 static const Family kFamilyIPv4; variable
/system/connectivity/shill/
Dconnection_info_unittest.cc65 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
68 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
71 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
74 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
86 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
89 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
92 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
95 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
Dsocket_info_unittest.cc50 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
53 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
66 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
69 IPAddress(IPAddress::kFamilyIPv4, in TEST_F()
81 IPAddress ip_address1(IPAddress::kFamilyIPv4, in TEST_F()
83 IPAddress ip_address2(IPAddress::kFamilyIPv4, in TEST_F()
85 IPAddress ip_address3(IPAddress::kFamilyIPv4, in TEST_F()
Drouting_table_unittest.cc293 IPAddress default_address(IPAddress::kFamilyIPv4); in TEST_F()
296 IPAddress gateway_address0(IPAddress::kFamilyIPv4); in TEST_F()
339 IPAddress gateway_address1(IPAddress::kFamilyIPv4); in TEST_F()
390 IPAddress::kFamilyIPv4, in TEST_F()
405 IPAddress::kFamilyIPv4, in TEST_F()
409 IPAddress gateway_address(IPAddress::kFamilyIPv4); in TEST_F()
427 IPAddress::kFamilyIPv4, in TEST_F()
455 IPAddress::kFamilyIPv4, in TEST_F()
478 IPAddress::kFamilyIPv4, in TEST_F()
506 properties.address_family = IPAddress::kFamilyIPv4; in TEST_F()
[all …]
Dconnection_diagnostics_unittest.cc160 ASSERT_EQ(IPAddress::kFamilyIPv4, kIPv4LocalAddress.family()); in SetUp()
161 ASSERT_EQ(IPAddress::kFamilyIPv4, kIPv4ServerAddress.family()); in SetUp()
162 ASSERT_EQ(IPAddress::kFamilyIPv4, kIPv4GatewayAddress.family()); in SetUp()
391 IPAddress(IPAddress::kFamilyIPv4)); in ExpectResolveTargetServerIPAddressEndTimeout()
396 IPAddress(IPAddress::kFamilyIPv4)); in ExpectResolveTargetServerIPAddressEndFailure()
473 IPAddress gateway(IPAddress::kFamilyIPv4); in ExpectFindRouteToHostEndSuccess()
914 ExpectResolveTargetServerIPAddressStartSuccess(IPAddress::kFamilyIPv4); in TEST_F()
949 ExpectResolveTargetServerIPAddressStartSuccess(IPAddress::kFamilyIPv4); in TEST_F()
982 ExpectResolveTargetServerIPAddressStartSuccess(IPAddress::kFamilyIPv4); in TEST_F()
986 ExpectResolveTargetServerIPAddressStartSuccess(IPAddress::kFamilyIPv4); in TEST_F()
[all …]
Dconnection_unittest.cc92 local_address_(IPAddress::kFamilyIPv4), in ConnectionTest()
93 broadcast_address_(IPAddress::kFamilyIPv4), in ConnectionTest()
94 gateway_address_(IPAddress::kFamilyIPv4), in ConnectionTest()
95 default_address_(IPAddress::kFamilyIPv4), in ConnectionTest()
108 properties_.address_family = IPAddress::kFamilyIPv4; in SetUp()
269 IPAddress::GetMaxPrefixLength(IPAddress::kFamilyIPv4) &&
367 IPAddress address1(IPAddress::kFamilyIPv4); in TEST_F()
368 IPAddress address2(IPAddress::kFamilyIPv4); in TEST_F()
500 IPAddress peer_address(IPAddress::kFamilyIPv4); in TEST_F()
533 IPAddress gateway_address(IPAddress::kFamilyIPv4); in TEST_F()
[all …]
Dppp_device_unittest.cc61 EXPECT_EQ(IPAddress::kFamilyIPv4, props.address_family); in TEST()
62 EXPECT_EQ(IPAddress::GetMaxPrefixLength(IPAddress::kFamilyIPv4), in TEST()
Dmock_dns_client.cc30 : DNSClient(IPAddress::kFamilyIPv4, "", vector<string>(), 0, nullptr, in MockDNSClient()
Darp_packet.cc86 family = IPAddress::kFamilyIPv4; in Parse()
145 if (family == IPAddress::kFamilyIPv4) { in FormatRequest()
Dsocket_info_reader.cc155 IPAddress::GetAddressLength(IPAddress::kFamilyIPv4)) { in ParseIPAddress()
156 family = IPAddress::kFamilyIPv4; in ParseIPAddress()
Dicmp_unittest.cc157 icmp_.TransmitEchoRequest(IPAddress(IPAddress::kFamilyIPv4), 1, 1)); in TEST_F()
165 IPAddress ipv4_destination(IPAddress::kFamilyIPv4); in TEST_F()
Dconnection_health_checker.cc116 IPAddress ip(IPAddress::kFamilyIPv4); in ConnectionHealthChecker()
153 dns_client_factory_->CreateDNSClient(IPAddress::kFamilyIPv4, in AddRemoteURL()
414 IPAddress local_ip_address(IPAddress::kFamilyIPv4); in GetSocketInfo()
Dip_address_store_unittest.cc41 IPAddress ip_address(IPAddress::kFamilyIPv4); in StringToIPv4Address()
Dicmp_session_unittest.cc195 IPAddress ipv4_destination(IPAddress::kFamilyIPv4); in TEST_F()
236 IPAddress ipv4_destination(IPAddress::kFamilyIPv4); in TEST_F()
359 IPAddress ipv4_destination(IPAddress::kFamilyIPv4); in TEST_F()
426 IPAddress ipv4_destination(IPAddress::kFamilyIPv4); in TEST_F()
Ddns_server_tester.cc59 IPAddress::kFamilyIPv4, in DNSServerTester()
Dhttp_request.cc74 : IPAddress::kFamilyIPv4, in HTTPRequest()
110 IPAddress addr(IPAddress::kFamilyIPv4); in Start()
Ddevice_info_unittest.cc121 IPAddress address(IPAddress::kFamilyIPv4); in CreateInterfaceAddress()
231 IPAddress::kFamilyIPv4); in BuildLinkMessageWithInterfaceName()
778 IPAddress ip_address0(IPAddress::kFamilyIPv4); in TEST_F()
881 IPAddress address0(IPAddress::kFamilyIPv4); in TEST_F()
949 IPAddress address5(IPAddress::kFamilyIPv4); in TEST_F()
968 IPAddress address0(IPAddress::kFamilyIPv4); in TEST_F()
987 IPAddress address6(IPAddress::kFamilyIPv4); in TEST_F()
1000 IPAddress address5(IPAddress::kFamilyIPv4); in TEST_F()
1112 IPAddress address(IPAddress::kFamilyIPv4); in TEST_F()
1130 IPAddress empty_ipv4_address(IPAddress::kFamilyIPv4); in TEST_F()
[all …]
Dicmp.cc74 if (destination.family() != IPAddress::kFamilyIPv4) { in TransmitEchoRequest()
Ddns_client_unittest.cc77 hostent_.h_addrtype = IPAddress::kFamilyIPv4; in DNSClientTest()
125 dns_client_.reset(new DNSClient(IPAddress::kFamilyIPv4, in CreateClient()
212 EXPECT_TRUE(dns_client_->address_.family() == IPAddress::kFamilyIPv4); in ExpectReset()
/system/connectivity/apmanager/
Ddhcp_server.cc57 server_address_(shill::IPAddress::kFamilyIPv4), in DHCPServer()
97 shill::IPAddress(shill::IPAddress::kFamilyIPv4)); in Start()
/system/connectivity/shill/dhcp/
Ddhcpv4_config.cc293 IPAddress destination(IPAddress::kFamilyIPv4); in ParseClasslessStaticRoutes()
304 IPAddress gateway(IPAddress::kFamilyIPv4); in ParseClasslessStaticRoutes()
342 properties->address_family = IPAddress::kFamilyIPv4; in ParseConfiguration()
/system/connectivity/shill/vpn/
Dthird_party_vpn_driver.cc192 if (IPAddress(parameters.at(key)).family() == IPAddress::kFamilyIPv4) { in ProcessIp()
215 if (IPAddress(*value).family() != IPAddress::kFamilyIPv4) { in ProcessIPArray()
238 IPAddress address(IPAddress::kFamilyIPv4); in ProcessIPArrayCIDR()
322 ip_properties_.address_family = IPAddress::kFamilyIPv4; in SetParameters()

123