Home
last modified time | relevance | path

Searched refs:prefix_length_in_bits (Results 1 – 8 of 8) sorted by relevance

/external/chromium-libpac/src/
Dnet_util.cc60 size_t* prefix_length_in_bits) { in ParseCIDRBlock() argument
86 *prefix_length_in_bits = static_cast<size_t>(number_of_bits); in ParseCIDRBlock()
92 size_t prefix_length_in_bits) { in IPNumberMatchesPrefix() argument
101 ip_prefix, prefix_length_in_bits); in IPNumberMatchesPrefix()
105 96 + prefix_length_in_bits); in IPNumberMatchesPrefix()
110 int num_entire_bytes_in_prefix = prefix_length_in_bits / 8; in IPNumberMatchesPrefix()
118 int remaining_bits = prefix_length_in_bits % 8; in IPNumberMatchesPrefix()
Dnet_util.h50 size_t* prefix_length_in_bits);
64 size_t prefix_length_in_bits);
Dproxy_resolver_v8.cc336 size_t prefix_length_in_bits; in IsInNetEx() local
337 if (!ParseCIDRBlock(ip_prefix, &prefix, &prefix_length_in_bits)) in IsInNetEx()
344 return IPNumberMatchesPrefix(address, prefix, prefix_length_in_bits); in IsInNetEx()
/external/chromium_org/net/proxy/
Dproxy_bypass_rules.cc92 size_t prefix_length_in_bits) in BypassIPBlockRule() argument
96 prefix_length_in_bits_(prefix_length_in_bits) { in BypassIPBlockRule()
294 size_t prefix_length_in_bits; in AddRuleFromStringInternal() local
296 if (!ParseCIDRBlock(raw, &ip_prefix, &prefix_length_in_bits)) in AddRuleFromStringInternal()
300 new BypassIPBlockRule(raw, scheme, ip_prefix, prefix_length_in_bits)); in AddRuleFromStringInternal()
Dproxy_resolver_v8.cc327 size_t prefix_length_in_bits; in IsInNetEx() local
328 if (!ParseCIDRBlock(ip_prefix, &prefix, &prefix_length_in_bits)) in IsInNetEx()
338 return IPNumberMatchesPrefix(address, prefix, prefix_length_in_bits); in IsInNetEx()
/external/chromium_org/net/base/
Dnet_util.cc148 size_t prefix_length_in_bits) { in IPNumberPrefixCheck() argument
150 int num_entire_bytes_in_prefix = prefix_length_in_bits / 8; in IPNumberPrefixCheck()
158 int remaining_bits = prefix_length_in_bits % 8; in IPNumberPrefixCheck()
902 size_t* prefix_length_in_bits) { in ParseCIDRBlock() argument
926 *prefix_length_in_bits = static_cast<size_t>(number_of_bits); in ParseCIDRBlock()
932 size_t prefix_length_in_bits) { in IPNumberMatchesPrefix() argument
938 DCHECK_LE(prefix_length_in_bits, ip_prefix.size() * 8); in IPNumberMatchesPrefix()
945 ip_prefix, prefix_length_in_bits); in IPNumberMatchesPrefix()
949 96 + prefix_length_in_bits); in IPNumberMatchesPrefix()
952 return IPNumberPrefixCheck(ip_number, &ip_prefix[0], prefix_length_in_bits); in IPNumberMatchesPrefix()
Dnet_util_unittest.cc609 size_t prefix_length_in_bits; in TEST() local
613 &prefix_length_in_bits)); in TEST()
620 size_t prefix_length_in_bits; in TEST() local
624 &prefix_length_in_bits)); in TEST()
627 EXPECT_EQ(11u, prefix_length_in_bits); in TEST()
698 size_t prefix_length_in_bits; in TEST() local
702 &prefix_length_in_bits)); in TEST()
707 prefix_length_in_bits)); in TEST()
Dnet_util.h414 size_t* prefix_length_in_bits);
428 size_t prefix_length_in_bits);