Home
last modified time | relevance | path

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

/external/webrtc/webrtc/base/
Dnetwork.cc70 if (a->prefix_length() == b->prefix_length()) { in CompareNetworks()
158 int prefix_length) { in MakeNetworkKey() argument
160 ost << name << "%" << prefix.ToString() << "/" << prefix_length; in MakeNetworkKey()
253 network->prefix_length()); in MergeNetworkList()
435 int prefix_length = CountIPMaskBits(mask); in ConvertIfAddrs() local
436 prefix = TruncateIP(ip, prefix_length); in ConvertIfAddrs()
438 prefix, prefix_length); in ConvertIfAddrs()
454 prefix_length, adapter_type)); in ConvertIfAddrs()
600 int prefix_length = GetPrefix(prefixlist, ip, &prefix); in CreateNetworks() local
601 std::string key = MakeNetworkKey(name, prefix, prefix_length); in CreateNetworks()
[all …]
Dfakenetwork.h95 int prefix_length = 0; in DoUpdateNetworks() local
97 prefix_length = kFakeIPv4NetworkPrefixLength; in DoUpdateNetworks()
99 prefix_length = kFakeIPv6NetworkPrefixLength; in DoUpdateNetworks()
101 IPAddress prefix = TruncateIP(it->first.ipaddr(), prefix_length); in DoUpdateNetworks()
104 prefix_length, it->second)); in DoUpdateNetworks()
Dnetwork.h56 int prefix_length);
267 int prefix_length);
272 int prefix_length,
294 int prefix_length() const { return prefix_length_; } in prefix_length() function
Dnetwork_unittest.cc158 EXPECT_EQ(24, ipv4_network1.prefix_length()); in TEST_F()
/external/vixl/test/
Dtest-aborts.cc47 size_t prefix_length = strlen(expected_prefix); \
48 if (strncmp(expected_prefix, e.what(), prefix_length) != 0) { \
/external/tcpdump/
Dprint-rpki-rtr.c59 u_char prefix_length; member
72 u_char prefix_length; member
271 pdu->prefix_length, pdu->max_length, in rpki_rtr_pdu_print()
287 pdu->prefix_length, pdu->max_length, in rpki_rtr_pdu_print()
Dprint-rsvp.c1086 u_char prefix_length; in rsvp_obj_print() local
1094 prefix_length = *(obj_tptr+6); in rsvp_obj_print()
1095 if (prefix_length != 32) { in rsvp_obj_print()
1097 prefix_length)); in rsvp_obj_print()
/external/libchrome/base/
Dcommand_line.cc62 size_t prefix_length = GetSwitchPrefixLength(string); in IsSwitch() local
63 if (prefix_length == 0 || prefix_length == string.length()) in IsSwitch()
344 size_t prefix_length = GetSwitchPrefixLength(combined_switch_string); in AppendSwitchNative() local
346 switches_.insert(make_pair(switch_key.substr(prefix_length), value)); in AppendSwitchNative()
351 if (prefix_length == 0) in AppendSwitchNative()
/external/pdfium/third_party/libpng16/
Dpngrutil.c2615 png_uint_32 prefix_length; in png_handle_iTXt() local
2658 for (prefix_length=0; in png_handle_iTXt()
2659 prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2660 ++prefix_length) in png_handle_iTXt()
2664 if (prefix_length > 79 || prefix_length < 1) in png_handle_iTXt()
2671 else if (prefix_length + 5 > length) in png_handle_iTXt()
2674 else if (buffer[prefix_length+1] == 0 || in png_handle_iTXt()
2675 (buffer[prefix_length+1] == 1 && in png_handle_iTXt()
2676 buffer[prefix_length+2] == PNG_COMPRESSION_TYPE_BASE)) in png_handle_iTXt()
2678 int compressed = buffer[prefix_length+1] != 0; in png_handle_iTXt()
[all …]
/external/libpng/
Dpngrutil.c2700 png_uint_32 prefix_length; in png_handle_iTXt() local
2743 for (prefix_length=0; in png_handle_iTXt()
2744 prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2745 ++prefix_length) in png_handle_iTXt()
2749 if (prefix_length > 79 || prefix_length < 1) in png_handle_iTXt()
2756 else if (prefix_length + 5 > length) in png_handle_iTXt()
2759 else if (buffer[prefix_length+1] == 0 || in png_handle_iTXt()
2760 (buffer[prefix_length+1] == 1 && in png_handle_iTXt()
2761 buffer[prefix_length+2] == PNG_COMPRESSION_TYPE_BASE)) in png_handle_iTXt()
2763 int compressed = buffer[prefix_length+1] != 0; in png_handle_iTXt()
[all …]
DCHANGES1162 Added a check for prefix_length > data_length in iCCP chunk handler.
/external/libmojo/mojo/public/cpp/bindings/tests/
Dvalidation_test_input_parser.cc74 bool StartsWith(const Range& range, const char* prefix, size_t prefix_length);
383 size_t prefix_length) { in StartsWith() argument
384 if (static_cast<size_t>(range.second - range.first) < prefix_length) in StartsWith()
387 return memcmp(range.first, prefix, prefix_length) == 0; in StartsWith()
/external/webrtc/tools/sslroots/
Dgenerate_sslroots.py101 prefix_length = len(_PREFIX)
103 label = current_file[prefix_length:length]
/external/libchrome/base/strings/
Dsafe_sprintf.cc337 const size_t prefix_length = reverse_prefix - prefix; in IToASCII() local
403 if (discarded > 8*sizeof(num) + prefix_length) { in IToASCII()
/external/syslinux/com32/lib/libpng/
Dpngrutil.c1051 png_size_t slength, prefix_length, data_length; in png_handle_iCCP() local
1122 prefix_length = profile - png_ptr->chunkdata; in png_handle_iCCP()
1124 slength, prefix_length, &data_length); in png_handle_iCCP()
1126 profile_length = data_length - prefix_length; in png_handle_iCCP()
1128 if ( prefix_length > data_length || profile_length < 4) in png_handle_iCCP()
1137 pC = (png_bytep)(png_ptr->chunkdata + prefix_length); in png_handle_iCCP()
1155 compression_type, png_ptr->chunkdata + prefix_length, profile_length); in png_handle_iCCP()
DCHANGES1048 Added a check for prefix_length > data_length in iCCP chunk handler.
/external/nos/test/system-test-harness/src/
Dutil.cc81 const size_t prefix_length = sizeof(prefix) / sizeof(prefix[0]) - 1; in find_uart() local
85 if (std::equal(prefix, prefix + prefix_length, listing->d_name)) { in find_uart()
/external/v8/src/regexp/
Djsregexp.cc5286 int prefix_length = atom->length(); in RationalizeConsecutiveAtoms() local
5301 prefix_length = Min(prefix_length, atom->length()); in RationalizeConsecutiveAtoms()
5312 for (int j = 1; j < run_length && prefix_length > 1; j++) { in RationalizeConsecutiveAtoms()
5315 for (int k = 1; k < prefix_length; k++) { in RationalizeConsecutiveAtoms()
5317 prefix_length = k; in RationalizeConsecutiveAtoms()
5323 new (zone) RegExpAtom(atom->data().SubVector(0, prefix_length)); in RationalizeConsecutiveAtoms()
5332 if (len == prefix_length) { in RationalizeConsecutiveAtoms()
5336 old_atom->data().SubVector(prefix_length, old_atom->length())); in RationalizeConsecutiveAtoms()
/external/v8/src/
Dobjects.cc11217 int prefix_length = x->length(); in Compare() local
11218 if (y->length() < prefix_length) { in Compare()
11219 prefix_length = y->length(); in Compare()
11221 } else if (y->length() > prefix_length) { in Compare()
11231 r = CompareChars(x_chars.start(), y_chars.start(), prefix_length); in Compare()
11234 r = CompareChars(x_chars.start(), y_chars.start(), prefix_length); in Compare()
11240 r = CompareChars(x_chars.start(), y_chars.start(), prefix_length); in Compare()
11243 r = CompareChars(x_chars.start(), y_chars.start(), prefix_length); in Compare()
/external/syslinux/com32/include/
Dpng.h3201 png_size_t prefix_length, png_size_t *data_length)) PNG_PRIVATE;