/external/autotest/client/common_lib/cros/network/ |
D | netblock.py | 9 def from_addr(addr, prefix_len=None): argument 38 if prefix_len is not None and prefix_len_str is not None: 40 'passed in value %d', prefix_len_str, prefix_len) 41 elif prefix_len is not None and prefix_len_str is None: 43 elif prefix_len is None and prefix_len_str is not None: 44 prefix_len = int(prefix_len_str) 49 return Netblock(addr_str, prefix_len) 81 str(self.prefix_len)]) 91 def prefix_len(self): member in Netblock 117 def __init__(self, addr_str, prefix_len): argument [all …]
|
/external/bison/lib/ |
D | basename-lgpl.c | 61 size_t prefix_len = FILE_SYSTEM_PREFIX_LEN (name); in base_len() local 70 if (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE && prefix_len in base_len() 71 && len == prefix_len && ISSLASH (name[prefix_len])) in base_len() 72 return prefix_len + 1; in base_len()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_symbolizer_libcdep.cc | 21 uptr prefix_len = internal_strcspn(str, delims); in ExtractToken() local 22 *result = (char*)InternalAlloc(prefix_len + 1); in ExtractToken() 23 internal_memcpy(*result, str, prefix_len); in ExtractToken() 24 (*result)[prefix_len] = '\0'; in ExtractToken() 25 const char *prefix_end = str + prefix_len; in ExtractToken() 53 uptr prefix_len = in ExtractTokenUpToDelimiter() local 55 *result = (char *)InternalAlloc(prefix_len + 1); in ExtractTokenUpToDelimiter() 56 internal_memcpy(*result, str, prefix_len); in ExtractTokenUpToDelimiter() 57 (*result)[prefix_len] = '\0'; in ExtractTokenUpToDelimiter() 58 const char *prefix_end = str + prefix_len; in ExtractTokenUpToDelimiter()
|
D | sanitizer_stacktrace_printer.cc | 21 uptr prefix_len = internal_strlen(prefix); in StripFunctionName() local 22 if (0 == internal_strncmp(function, prefix, prefix_len)) in StripFunctionName() 23 return function + prefix_len; in StripFunctionName()
|
D | sanitizer_common.cc | 435 uptr prefix_len = end - beg; in FindPathToBinary() local 436 if (prefix_len + name_len + 2 <= kMaxPathLength) { in FindPathToBinary() 437 internal_memcpy(buffer.data(), beg, prefix_len); in FindPathToBinary() 438 buffer[prefix_len] = '/'; in FindPathToBinary() 439 internal_memcpy(&buffer[prefix_len + 1], name, name_len); in FindPathToBinary() 440 buffer[prefix_len + 1 + name_len] = '\0'; in FindPathToBinary()
|
/external/tcpdump/ |
D | print-lspping.c | 190 uint8_t prefix_len; member 207 uint8_t prefix_len; member 223 uint8_t prefix_len; member 245 uint8_t prefix_len; member 322 uint8_t prefix_len; member 343 uint8_t prefix_len; member 630 subtlv_ptr.lspping_tlv_targetfec_subtlv_ldp_ipv4->prefix_len)); in lspping_print() 639 subtlv_ptr.lspping_tlv_targetfec_subtlv_ldp_ipv6->prefix_len)); in lspping_print() 648 subtlv_ptr.lspping_tlv_targetfec_subtlv_bgp_ipv4->prefix_len, in lspping_print() 658 subtlv_ptr.lspping_tlv_targetfec_subtlv_bgp_ipv6->prefix_len, in lspping_print() [all …]
|
D | util.c | 454 int prefix_len = 32; in mask2plen() local 457 while (prefix_len >= 0) { in mask2plen() 458 if (bitmasks[prefix_len] == mask) in mask2plen() 460 prefix_len--; in mask2plen() 462 return (prefix_len); in mask2plen()
|
/external/libunwind/tests/ |
D | test-coredump-unwind.c | 90 int prefix_len, strerr_len, msgeol_len, used; in verror_msg_helper() local 104 prefix_len = msg_prefix[0] ? strlen(msg_prefix) + 2 : 0; in verror_msg_helper() 108 char *msg1 = (char*) realloc(msg, prefix_len + used + strerr_len + msgeol_len + 3); in verror_msg_helper() 116 if (prefix_len) in verror_msg_helper() 119 memmove(msg + prefix_len, msg, used); in verror_msg_helper() 120 used += prefix_len; in verror_msg_helper() 145 syslog(LOG_ERR, "%s", msg + prefix_len); in verror_msg_helper()
|
/external/dhcpcd-6.8.2/ |
D | ipv6.c | 315 const struct in6_addr *prefix, int prefix_len, in ipv6_makestableprivate1() argument 325 if (prefix_len < 0 || prefix_len > 120) { in ipv6_makestableprivate1() 330 l = (size_t)(ROUNDUP8(prefix_len) / NBBY); in ipv6_makestableprivate1() 368 if (prefix_len != 64) in ipv6_makestableprivate1() 379 const struct in6_addr *prefix, int prefix_len, in ipv6_makestableprivate() argument 390 r = ipv6_makestableprivate1(addr, prefix, prefix_len, in ipv6_makestableprivate() 403 const struct in6_addr *prefix, int prefix_len) in ipv6_makeaddr() argument 408 if (prefix_len < 0 || prefix_len > 120) { in ipv6_makeaddr() 420 prefix, prefix_len, ifp, &dad) == -1) in ipv6_makeaddr() 425 if (prefix_len > 64) { in ipv6_makeaddr() [all …]
|
D | dhcp6.c | 127 uint8_t prefix_len; member 417 asla.prefix_len = 0; in dhcp6_delegateaddr() 419 } else if (sla->prefix_len == 0) { in dhcp6_delegateaddr() 422 asla.prefix_len = prefix->prefix_len; in dhcp6_delegateaddr() 424 asla.prefix_len = 0; in dhcp6_delegateaddr() 427 if (sla->prefix_len == 0) { in dhcp6_delegateaddr() 444 if (prefix->prefix_len + bits > UINT8_MAX) in dhcp6_delegateaddr() 445 asla.prefix_len = UINT8_MAX; in dhcp6_delegateaddr() 447 asla.prefix_len = (uint8_t)(prefix->prefix_len + bits); in dhcp6_delegateaddr() 451 if (asla.prefix_len <= 64) in dhcp6_delegateaddr() [all …]
|
D | ipv6.h | 98 uint8_t prefix_len; member 218 const struct in6_addr *prefix, int prefix_len, 225 int ipv6_userprefix( const struct in6_addr *, short prefix_len,
|
D | if-options.h | 129 uint8_t prefix_len; member 139 uint8_t prefix_len; member
|
/external/compiler-rt/lib/profile/ |
D | GCDAProfiling.c | 163 size_t filename_len, prefix_len; in mangle_filename() local 194 prefix_len = strlen(prefix); in mangle_filename() 195 new_filename = malloc(prefix_len + 1 + filename_len + 1); in mangle_filename() 196 memcpy(new_filename, prefix, prefix_len); in mangle_filename() 198 if (prefix[prefix_len - 1] != '/') in mangle_filename() 199 new_filename[prefix_len++] = '/'; in mangle_filename() 200 memcpy(new_filename + prefix_len, fname, filename_len + 1); in mangle_filename()
|
/external/srtp/srtp/ |
D | srtp.c | 608 int prefix_len; in srtp_protect() local 786 prefix_len = auth_get_prefix_length(stream->rtp_auth); in srtp_protect() 787 if (prefix_len) { in srtp_protect() 788 status = cipher_output(stream->rtp_cipher, auth_tag, prefix_len); in srtp_protect() 792 octet_string_hex_string(auth_tag, prefix_len)); in srtp_protect() 852 int tag_len, prefix_len; in srtp_unprotect() local 1001 if (stream->rtp_auth->prefix_len != 0) { in srtp_unprotect() 1003 prefix_len = auth_get_prefix_length(stream->rtp_auth); in srtp_unprotect() 1004 status = cipher_output(stream->rtp_cipher, tmp_tag, prefix_len); in srtp_unprotect() 1006 octet_string_hex_string(tmp_tag, prefix_len)); in srtp_unprotect() [all …]
|
/external/opencv3/modules/stitching/src/ |
D | motion_estimators.cpp | 720 size_t prefix_len = name_src.find_last_of("/\\"); in matchesGraphAsString() local 721 if (prefix_len != String::npos) prefix_len++; else prefix_len = 0; in matchesGraphAsString() 722 name_src = name_src.substr(prefix_len, name_src.size() - prefix_len); in matchesGraphAsString() 725 prefix_len = name_dst.find_last_of("/\\"); in matchesGraphAsString() 726 if (prefix_len != String::npos) prefix_len++; else prefix_len = 0; in matchesGraphAsString() 727 name_dst = name_dst.substr(prefix_len, name_dst.size() - prefix_len); in matchesGraphAsString() 742 size_t prefix_len = name.find_last_of("/\\"); in matchesGraphAsString() local 743 if (prefix_len != String::npos) prefix_len++; else prefix_len = 0; in matchesGraphAsString() 744 name = name.substr(prefix_len, name.size() - prefix_len); in matchesGraphAsString()
|
/external/libselinux/src/ |
D | label_file.c | 271 uint32_t mode = 0, prefix_len = 0; in load_mmap() local 357 rc = next_entry(&prefix_len, mmap_area, in load_mmap() 362 spec->prefix_len = prefix_len; in load_mmap() 720 size_t prefix_len = 0; in lookup_best_match() local 740 prefix_len = specs[0]->prefix_len; in lookup_best_match() 750 if (specs[i]->prefix_len > prefix_len) { in lookup_best_match() 752 prefix_len = specs[i]->prefix_len; in lookup_best_match()
|
/external/selinux/libselinux/src/ |
D | label_file.c | 273 uint32_t mode = 0, prefix_len = 0; in load_mmap() local 359 rc = next_entry(&prefix_len, mmap_area, in load_mmap() 364 spec->prefix_len = prefix_len; in load_mmap() 757 size_t prefix_len = 0; in lookup_best_match() local 777 prefix_len = specs[0]->prefix_len; in lookup_best_match() 787 if (specs[i]->prefix_len > prefix_len) { in lookup_best_match() 789 prefix_len = specs[i]->prefix_len; in lookup_best_match()
|
D | label_file.h | 40 size_t prefix_len; /* length of fixed path prefix */ member 154 spec->prefix_len = len; in spec_hasMetaChars() 171 spec->prefix_len = c - spec->regex_str; in spec_hasMetaChars()
|
/external/autotest/client/site_tests/network_DhcpFailureWithStaticIP/ |
D | network_DhcpFailureWithStaticIP.py | 69 prefix_len = 23 71 service.SetProperty('StaticIP.Prefixlen', prefix_len)
|
/external/elfutils/src/ |
D | size.c | 360 size_t prefix_len = prefix == NULL ? 0 : strlen (prefix); in handle_ar() local 362 char new_prefix[prefix_len + 1 + fname_len]; in handle_ar() 368 cp = mempcpy (cp, prefix, prefix_len); in handle_ar() 645 size_t prefix_len = prefix == NULL ? 0 : strlen (prefix); in handle_elf() local 647 char fullname[prefix_len + 1 + fname_len]; in handle_elf() 653 cp = mempcpy (cp, prefix, prefix_len); in handle_elf()
|
/external/boringssl/src/crypto/bio/ |
D | bio.c | 478 const uint8_t *prefix, size_t prefix_len, in bio_read_all() argument 482 size_t len = prefix_len + kChunkSize; in bio_read_all() 486 if (len < prefix_len) { in bio_read_all() 493 memcpy(*out, prefix, prefix_len); in bio_read_all() 494 size_t done = prefix_len; in bio_read_all()
|
/external/libpng/ |
D | pngwutil.c | 490 compression_state *comp, png_uint_32 prefix_len) in png_text_compress() argument 546 if (output_len + prefix_len > PNG_UINT_31_MAX) in png_text_compress() 603 if (output_len + prefix_len >= PNG_UINT_31_MAX) in png_text_compress() 1599 png_uint_32 key_len, prefix_len; in png_write_iTXt() local 1647 prefix_len = key_len; in png_write_iTXt() 1648 if (lang_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt() 1649 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt() 1651 prefix_len = (png_uint_32)(prefix_len + lang_len); in png_write_iTXt() 1653 if (lang_key_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt() 1654 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt() [all …]
|
/external/pdfium/third_party/lpng_v163/ |
D | pngwutil.c | 489 compression_state *comp, png_uint_32 prefix_len) in png_text_compress() argument 545 if (output_len + prefix_len > PNG_UINT_31_MAX) in png_text_compress() 602 if (output_len + prefix_len >= PNG_UINT_31_MAX) in png_text_compress() 1675 png_uint_32 key_len, prefix_len; in png_write_iTXt() local 1723 prefix_len = key_len; in png_write_iTXt() 1724 if (lang_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt() 1725 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt() 1727 prefix_len = (png_uint_32)(prefix_len + lang_len); in png_write_iTXt() 1729 if (lang_key_len > PNG_UINT_31_MAX-prefix_len) in png_write_iTXt() 1730 prefix_len = PNG_UINT_31_MAX; in png_write_iTXt() [all …]
|
/external/libselinux/utils/ |
D | sefcontext_compile.c | 145 size_t prefix_len = specs[i].prefix_len; in write_binary_file() local 192 to_write = prefix_len; in write_binary_file()
|
/external/avahi/avahi-core/ |
D | iface.h | 127 unsigned prefix_len; member 185 …ss_new(AvahiInterfaceMonitor *m, AvahiInterface *i, const AvahiAddress *addr, unsigned prefix_len);
|