Home
last modified time | relevance | path

Searched refs:ip_number (Results 1 – 12 of 12) sorted by relevance

/external/chromium/net/udp/
Dudp_socket_unittest.cc118 IPAddressNumber ip_number; in CreateUDPAddress() local
119 bool rv = ParseIPLiteralToNumber(ip_str, &ip_number); in CreateUDPAddress()
122 *address = IPEndPoint(ip_number, port); in CreateUDPAddress()
237 net::IPAddressNumber ip_number; in TEST_F() local
238 net::ParseIPLiteralToNumber(tests[i].remote_address, &ip_number); in TEST_F()
239 net::IPEndPoint remote_address(ip_number, 80); in TEST_F()
240 net::ParseIPLiteralToNumber(tests[i].local_address, &ip_number); in TEST_F()
241 net::IPEndPoint local_address(ip_number, 80); in TEST_F()
/external/chromium/net/base/
Dmock_host_resolver.cc38 IPAddressNumber ip_number; in CreateIPAddressList() local
39 if (!ParseIPLiteralToNumber(addresses[index], &ip_number)) { in CreateIPAddressList()
44 AddressList result(ip_number, -1, false); in CreateIPAddressList()
181 IPAddressNumber ip_number; in AddIPLiteralRule() local
182 DCHECK(!ParseIPLiteralToNumber(host_pattern, &ip_number)); in AddIPLiteralRule()
Dnet_util.cc2092 IPAddressNumber* ip_number) { in ParseIPLiteralToNumber() argument
2101 ip_number->resize(16); // 128 bits. in ParseIPLiteralToNumber()
2104 &(*ip_number)[0]); in ParseIPLiteralToNumber()
2108 ip_number->resize(4); // 32 bits. in ParseIPLiteralToNumber()
2112 ip_literal.data(), host_comp, &(*ip_number)[0], &num_components); in ParseIPLiteralToNumber()
2132 IPAddressNumber* ip_number, in ParseCIDRBlock() argument
2144 if (!ParseIPLiteralToNumber(parts[0], ip_number)) in ParseCIDRBlock()
2154 number_of_bits > static_cast<int>(ip_number->size() * 8)) in ParseCIDRBlock()
2161 bool IPNumberMatchesPrefix(const IPAddressNumber& ip_number, in IPNumberMatchesPrefix() argument
2166 DCHECK(ip_number.size() == 4 || ip_number.size() == 16); in IPNumberMatchesPrefix()
[all …]
Dnet_util.h410 IPAddressNumber* ip_number);
428 IPAddressNumber* ip_number,
441 bool IPNumberMatchesPrefix(const IPAddressNumber& ip_number,
Daddress_list_unittest.cc200 IPAddressNumber ip_number; in TEST() local
201 ParseIPLiteralToNumber(tests[i].ip_address, &ip_number); in TEST()
202 AddressList test_list(ip_number, 80, true); in TEST()
Dnet_util_unittest.cc2214 IPAddressNumber ip_number; in TEST() local
2218 &ip_number, in TEST()
2225 IPAddressNumber ip_number; in TEST() local
2229 &ip_number, in TEST()
2232 EXPECT_EQ("192,168,0,1", DumpIPNumber(ip_number)); in TEST()
2300 IPAddressNumber ip_number; in TEST() local
2301 EXPECT_TRUE(ParseIPLiteralToNumber(tests[i].ip_literal, &ip_number)); in TEST()
2311 IPNumberMatchesPrefix(ip_number, in TEST()
Dhost_resolver_impl.cc995 IPAddressNumber ip_number; in Resolve() local
996 if (ParseIPLiteralToNumber(info.hostname(), &ip_number)) { in Resolve()
1004 if (ip_number.size() == 16 && ipv6_disabled) { in Resolve()
1007 AddressList result(ip_number, info.port(), in Resolve()
/external/chromium/chrome/browser/safe_browsing/
Dclient_side_detection_service.cc134 net::IPAddressNumber ip_number; in IsPrivateIPAddress() local
135 if (!net::ParseIPLiteralToNumber(ip_address, &ip_number)) { in IsPrivateIPAddress()
144 if (net::IPNumberMatchesPrefix(ip_number, it->first, it->second)) { in IsPrivateIPAddress()
439 net::IPAddressNumber ip_number; in InitializePrivateNetworks() local
441 if (net::ParseCIDRBlock(kPrivateNetworks[i], &ip_number, &prefix_length)) { in InitializePrivateNetworks()
442 private_networks_.push_back(std::make_pair(ip_number, prefix_length)); in InitializePrivateNetworks()
/external/chromium/net/socket/
Dtcp_server_socket_unittest.cc37 IPAddressNumber ip_number; in ParseAddress() local
38 bool rv = ParseIPLiteralToNumber(ip_str, &ip_number); in ParseAddress()
41 *address = IPEndPoint(ip_number, port); in ParseAddress()
Dtransport_client_socket_pool_unittest.cc400 IPAddressNumber ip_number; in TEST() local
401 ASSERT_TRUE(ParseIPLiteralToNumber("192.168.1.1", &ip_number)); in TEST()
402 AddressList addrlist_v4_1(ip_number, 80, false); in TEST()
403 ASSERT_TRUE(ParseIPLiteralToNumber("192.168.1.2", &ip_number)); in TEST()
404 AddressList addrlist_v4_2(ip_number, 80, false); in TEST()
405 ASSERT_TRUE(ParseIPLiteralToNumber("2001:4860:b006::64", &ip_number)); in TEST()
406 AddressList addrlist_v6_1(ip_number, 80, false); in TEST()
407 ASSERT_TRUE(ParseIPLiteralToNumber("2001:4860:b006::66", &ip_number)); in TEST()
408 AddressList addrlist_v6_2(ip_number, 80, false); in TEST()
/external/chromium/net/proxy/
Dproxy_bypass_rules.cc103 IPAddressNumber ip_number; in Matches() local
104 if (!ParseIPLiteralToNumber(url.HostNoBrackets(), &ip_number)) in Matches()
108 return IPNumberMatchesPrefix(ip_number, ip_prefix_, in Matches()
Dproxy_resolver_v8.cc234 IPAddress(const std::string& ip_string, const IPAddressNumber& ip_number) in IPAddress()
236 ip_address_number(ip_number) { in IPAddress()