Home
last modified time | relevance | path

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

/external/chromium/net/proxy/
Dproxy_bypass_rules.cc88 size_t prefix_length_in_bits) in BypassIPBlockRule() argument
92 prefix_length_in_bits_(prefix_length_in_bits) { in BypassIPBlockRule()
289 size_t prefix_length_in_bits; in AddRuleFromStringInternal() local
291 if (!ParseCIDRBlock(raw, &ip_prefix, &prefix_length_in_bits)) in AddRuleFromStringInternal()
295 new BypassIPBlockRule(raw, scheme, ip_prefix, prefix_length_in_bits)); in AddRuleFromStringInternal()
Dproxy_resolver_v8.cc313 size_t prefix_length_in_bits; in IsInNetEx() local
314 if (!ParseCIDRBlock(ip_prefix, &prefix, &prefix_length_in_bits)) in IsInNetEx()
324 return IPNumberMatchesPrefix(address, prefix, prefix_length_in_bits); in IsInNetEx()
/external/chromium/net/base/
Dnet_util.h429 size_t* prefix_length_in_bits);
443 size_t prefix_length_in_bits);
Dnet_util_unittest.cc2215 size_t prefix_length_in_bits; in TEST() local
2219 &prefix_length_in_bits)); in TEST()
2226 size_t prefix_length_in_bits; in TEST() local
2230 &prefix_length_in_bits)); in TEST()
2233 EXPECT_EQ(11u, prefix_length_in_bits); in TEST()
2304 size_t prefix_length_in_bits; in TEST() local
2308 &prefix_length_in_bits)); in TEST()
2313 prefix_length_in_bits)); in TEST()
Dnet_util.cc2133 size_t* prefix_length_in_bits) { in ParseCIDRBlock() argument
2157 *prefix_length_in_bits = static_cast<size_t>(number_of_bits); in ParseCIDRBlock()
2163 size_t prefix_length_in_bits) { in IPNumberMatchesPrefix() argument
2169 DCHECK_LE(prefix_length_in_bits, ip_prefix.size() * 8); in IPNumberMatchesPrefix()
2176 ip_prefix, prefix_length_in_bits); in IPNumberMatchesPrefix()
2180 96 + prefix_length_in_bits); in IPNumberMatchesPrefix()
2185 int num_entire_bytes_in_prefix = prefix_length_in_bits / 8; in IPNumberMatchesPrefix()
2193 int remaining_bits = prefix_length_in_bits % 8; in IPNumberMatchesPrefix()