Home
last modified time | relevance | path

Searched refs:prefix_length (Results 1 – 25 of 53) sorted by relevance

123

/external/chromium_org/chromeos/network/
Dnetwork_util.cc30 std::string PrefixLengthToNetmask(int32 prefix_length) { in PrefixLengthToNetmask() argument
33 if (prefix_length < 0 || prefix_length > 32) in PrefixLengthToNetmask()
37 if (prefix_length >= 8) { in PrefixLengthToNetmask()
38 prefix_length -= 8; in PrefixLengthToNetmask()
40 remainder = prefix_length; in PrefixLengthToNetmask()
41 prefix_length = 0; in PrefixLengthToNetmask()
54 int prefix_length = 0; in NetmaskToPrefixLength() local
64 if (prefix_length / 8 != count) { in NetmaskToPrefixLength()
68 prefix_length += 8; in NetmaskToPrefixLength()
70 prefix_length += 7; in NetmaskToPrefixLength()
[all …]
Dnetwork_util.h70 CHROMEOS_EXPORT std::string PrefixLengthToNetmask(int32 prefix_length);
/external/bison/lib/
Ddirname-lgpl.c34 size_t prefix_length = FILE_SYSTEM_PREFIX_LEN (file); in dir_len() local
38 prefix_length += (prefix_length != 0 in dir_len()
40 && ISSLASH (file[prefix_length])) in dir_len()
49 prefix_length < length; length--) in dir_len()
/external/chromium_org/third_party/libjingle/source/talk/base/
Dfakenetwork.h105 int prefix_length = 0; in DoUpdateNetworks() local
107 prefix_length = kFakeIPv4NetworkPrefixLength; in DoUpdateNetworks()
109 prefix_length = kFakeIPv6NetworkPrefixLength; in DoUpdateNetworks()
111 IPAddress prefix = TruncateIP(it->ipaddr(), prefix_length); in DoUpdateNetworks()
115 prefix_length)); in DoUpdateNetworks()
Dnetwork.cc85 int prefix_length) { in MakeNetworkKey() argument
87 ost << name << "%" << prefix.ToString() << "/" << prefix_length; in MakeNetworkKey()
92 if (a->prefix_length() == b->prefix_length()) { in CompareNetworks()
142 list[i]->prefix_length()); in MergeNetworkList()
232 int prefix_length = CountIPMaskBits(mask); in ConvertIfAddrs() local
233 prefix = TruncateIP(ip, prefix_length); in ConvertIfAddrs()
235 prefix, prefix_length); in ConvertIfAddrs()
241 prefix_length)); in ConvertIfAddrs()
379 int prefix_length = GetPrefix(prefixlist, ip, &prefix); in CreateNetworks() local
380 std::string key = MakeNetworkKey(name, prefix, prefix_length); in CreateNetworks()
[all …]
Dnetwork.h173 const IPAddress& prefix, int prefix_length);
185 int prefix_length() const { return prefix_length_; } in prefix_length() function
/external/chromium_org/net/cert/
Dct_serialization.cc66 bool ReadLength(size_t prefix_length, base::StringPiece* in, size_t* out) { in ReadLength() argument
68 if (!ReadUint(prefix_length, in, &length)) in ReadLength()
90 bool ReadVariableBytes(size_t prefix_length, in ReadVariableBytes() argument
94 if (!ReadLength(prefix_length, in, &length)) in ReadVariableBytes()
201 bool WriteVariableBytes(size_t prefix_length, in WriteVariableBytes() argument
206 static_cast<size_t>(((1 << (prefix_length * 8)) - 1)); in WriteVariableBytes()
210 WriteUint(prefix_length, input.size(), output); in WriteVariableBytes()
/external/chromium_org/chrome/renderer/plugins/
Dplugin_uma.cc160 size_t prefix_length = strlen(kSilverlightTypePrefix); in MimeTypeToPluginType() local
161 if (strncmp(mime_type.c_str(), kSilverlightTypePrefix, prefix_length) == 0) in MimeTypeToPluginType()
164 prefix_length = strlen(kRealPlayerTypePrefix); in MimeTypeToPluginType()
165 if (strncmp(mime_type.c_str(), kRealPlayerTypePrefix, prefix_length) == 0) in MimeTypeToPluginType()
/external/chromium_org/chrome/browser/chromeos/extensions/
Dinput_method_api.cc79 size_t prefix_length = std::string(kXkbPrefix).length(); in GetInputMethodForXkb() local
80 DCHECK(xkb_id.substr(0, prefix_length) == kXkbPrefix); in GetInputMethodForXkb()
81 return xkb_id.substr(prefix_length); in GetInputMethodForXkb()
/external/chromium_org/chrome/browser/storage_monitor/
Dstorage_info.cc73 size_t prefix_length = device_id.find_first_of(':'); in CrackDeviceId() local
74 std::string prefix = prefix_length != std::string::npos in CrackDeviceId()
75 ? device_id.substr(0, prefix_length + 1) in CrackDeviceId()
103 *unique_id = device_id.substr(prefix_length + 1); in CrackDeviceId()
/external/chromium_org/third_party/WebKit/Tools/gdb/
Dwebkit.py184 self.prefix_length = 0
191 self.prefix_length = self.prefix_printer.get_length()
192 if self.prefix_length > 0:
193 self.length = (self.prefix_length + 1 +
205 if self.prefix_length > 0:
/external/chromium_org/net/dns/
Daddress_sorter_posix.h34 unsigned prefix_length; member
55 unsigned prefix_length; member
Daddress_sorter_posix.cc41 return p1.prefix_length > p2.prefix_length; in ComparePolicy()
62 if (IPNumberMatchesPrefix(address, prefix, entry.prefix_length)) in GetPolicyValue()
304 info->src->prefix_length); in Sort()
335 info.prefix_length = msg.ifa_prefixlen; in OnIPAddressChanged()
375 info.prefix_length = MaskPrefixLength(netmask.address()); in OnIPAddressChanged()
/external/chromium_org/chrome/browser/extensions/api/system_network/
Dsystem_network_apitest.cc62 << ", prefix length=" << network_interface.prefix_length; in IN_PROC_BROWSER_TEST_F()
65 ASSERT_LE(0, network_interface.prefix_length); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/base/
Dcommand_line.cc60 size_t prefix_length = GetSwitchPrefixLength(string); in IsSwitch() local
61 if (prefix_length == 0 || prefix_length == string.length()) in IsSwitch()
346 size_t prefix_length = GetSwitchPrefixLength(combined_switch_string); in AppendSwitchNative() local
347 switches_[switch_key.substr(prefix_length)] = value; in AppendSwitchNative()
349 if (prefix_length == 0) in AppendSwitchNative()
/external/chromium_org/third_party/tcmalloc/vendor/src/windows/
Dport.cc282 const int prefix_length = strlen(prefix); in DeleteMatchingFiles() local
285 if ((strlen(fname) >= prefix_length) && in DeleteMatchingFiles()
286 (memcmp(fname, prefix, prefix_length) == 0)) { in DeleteMatchingFiles()
/external/chromium_org/chrome/browser/ui/omnibox/
Domnibox_current_page_delegate_impl.cc75 size_t prefix_length = match.keyword.length() + 1; in ProcessExtensionKeyword() local
79 UTF16ToUTF8(match.fill_into_edit.substr(prefix_length)), in ProcessExtensionKeyword()
/external/chromium_org/third_party/tcmalloc/vendor/src/
Dheap-profiler.cc463 const int prefix_length = strlen(prefix); in HeapProfilerStart() local
464 filename_prefix = reinterpret_cast<char*>(ProfilerMalloc(prefix_length + 1)); in HeapProfilerStart()
465 memcpy(filename_prefix, prefix, prefix_length); in HeapProfilerStart()
466 filename_prefix[prefix_length] = '\0'; in HeapProfilerStart()
/external/chromium_org/third_party/tcmalloc/chromium/src/windows/
Dport.cc351 const int prefix_length = strlen(prefix); in DeleteMatchingFiles() local
354 if ((strlen(fname) >= prefix_length) && in DeleteMatchingFiles()
355 (memcmp(fname, prefix, prefix_length) == 0)) { in DeleteMatchingFiles()
/external/chromium/net/base/
Dsdch_manager.cc189 size_t prefix_length = restriction.size(); in PathMatch() local
190 if (prefix_length > path.size()) in PathMatch()
192 if (0 != path.compare(0, prefix_length, restriction)) in PathMatch()
194 return restriction[prefix_length - 1] == '/' || path[prefix_length] == '/'; in PathMatch()
/external/chromium_org/net/base/
Dsdch_manager.cc193 size_t prefix_length = restriction.size(); in PathMatch() local
194 if (prefix_length > path.size()) in PathMatch()
196 if (0 != path.compare(0, prefix_length, restriction)) in PathMatch()
198 return restriction[prefix_length - 1] == '/' || path[prefix_length] == '/'; in PathMatch()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dheap-profiler.cc554 const int prefix_length = strlen(prefix); in HeapProfilerStart() local
555 filename_prefix = reinterpret_cast<char*>(ProfilerMalloc(prefix_length + 1)); in HeapProfilerStart()
556 memcpy(filename_prefix, prefix, prefix_length); in HeapProfilerStart()
557 filename_prefix[prefix_length] = '\0'; in HeapProfilerStart()
/external/chromium_org/third_party/libxslt/libxslt/
Dnumbers.c953 int prefix_length, suffix_length = 0, nprefix_length, nsuffix_length; in xsltFormatNumberConversion() local
1019 prefix_length = xsltFormatNumberPreSuffix(self, &the_format, &format_info); in xsltFormatNumberConversion()
1020 if (prefix_length < 0) { in xsltFormatNumberConversion()
1234 if ((nprefix_length != prefix_length) || in xsltFormatNumberConversion()
1237 (xmlStrncmp(nprefix, prefix, prefix_length) !=0 )) || in xsltFormatNumberConversion()
1241 prefix_length = nprefix_length; in xsltFormatNumberConversion()
1257 prefix_length = suffix_length = 0; in xsltFormatNumberConversion()
1272 for (j = 0; j < prefix_length; j++) { in xsltFormatNumberConversion()
/external/libxslt/libxslt/
Dnumbers.c953 int prefix_length, suffix_length = 0, nprefix_length, nsuffix_length; in xsltFormatNumberConversion() local
1019 prefix_length = xsltFormatNumberPreSuffix(self, &the_format, &format_info); in xsltFormatNumberConversion()
1020 if (prefix_length < 0) { in xsltFormatNumberConversion()
1234 if ((nprefix_length != prefix_length) || in xsltFormatNumberConversion()
1237 (xmlStrncmp(nprefix, prefix, prefix_length) !=0 )) || in xsltFormatNumberConversion()
1241 prefix_length = nprefix_length; in xsltFormatNumberConversion()
1257 prefix_length = suffix_length = 0; in xsltFormatNumberConversion()
1272 for (j = 0; j < prefix_length; j++) { in xsltFormatNumberConversion()
/external/chromium/chrome/browser/safe_browsing/
Dclient_side_detection_service.cc440 size_t prefix_length; 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()

123