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.cc90 size_t prefix_length_in_bits) in BypassIPBlockRule() argument
94 prefix_length_in_bits_(prefix_length_in_bits) { in BypassIPBlockRule()
291 size_t prefix_length_in_bits; in AddRuleFromStringInternal() local
293 if (!ParseCIDRBlock(raw, &ip_prefix, &prefix_length_in_bits)) in AddRuleFromStringInternal()
297 new BypassIPBlockRule(raw, scheme, ip_prefix, prefix_length_in_bits)); in AddRuleFromStringInternal()
Dproxy_resolver_v8.cc326 size_t prefix_length_in_bits; in IsInNetEx() local
327 if (!ParseCIDRBlock(ip_prefix, &prefix, &prefix_length_in_bits)) in IsInNetEx()
337 return IPNumberMatchesPrefix(address, prefix, prefix_length_in_bits); in IsInNetEx()
/external/chromium_org/net/base/
Dnet_util.cc147 size_t prefix_length_in_bits) { in IPNumberPrefixCheck() argument
149 int num_entire_bytes_in_prefix = prefix_length_in_bits / 8; in IPNumberPrefixCheck()
157 int remaining_bits = prefix_length_in_bits % 8; in IPNumberPrefixCheck()
850 size_t* prefix_length_in_bits) { in ParseCIDRBlock() argument
874 *prefix_length_in_bits = static_cast<size_t>(number_of_bits); in ParseCIDRBlock()
880 size_t prefix_length_in_bits) { in IPNumberMatchesPrefix() argument
886 DCHECK_LE(prefix_length_in_bits, ip_prefix.size() * 8); in IPNumberMatchesPrefix()
893 ip_prefix, prefix_length_in_bits); in IPNumberMatchesPrefix()
897 96 + prefix_length_in_bits); in IPNumberMatchesPrefix()
900 return IPNumberPrefixCheck(ip_number, &ip_prefix[0], prefix_length_in_bits); in IPNumberMatchesPrefix()
Dnet_util_unittest.cc570 size_t prefix_length_in_bits; in TEST() local
574 &prefix_length_in_bits)); in TEST()
581 size_t prefix_length_in_bits; in TEST() local
585 &prefix_length_in_bits)); in TEST()
588 EXPECT_EQ(11u, prefix_length_in_bits); in TEST()
659 size_t prefix_length_in_bits; in TEST() local
663 &prefix_length_in_bits)); in TEST()
668 prefix_length_in_bits)); in TEST()
Dnet_util.h402 size_t* prefix_length_in_bits);
416 size_t prefix_length_in_bits);