/external/dhcpcd-6.8.2/ |
D | auth.c | 108 const uint8_t *data, size_t dlen) in dhcp_auth_validate() argument 119 if (dlen < 3 + sizeof(replay)) { in dhcp_auth_validate() 125 if (data < m || data > m + mlen || data + dlen > m + mlen) { in dhcp_auth_validate() 154 dlen -= 3; in dhcp_auth_validate() 172 dlen -= sizeof(replay); in dhcp_auth_validate() 184 if (dlen < sizeof(secretid) + sizeof(hmac)) { in dhcp_auth_validate() 190 dlen -= sizeof(secretid); in dhcp_auth_validate() 193 if (dlen < sizeof(secretid) + sizeof(hmac)) { in dhcp_auth_validate() 197 realm_len = dlen - (sizeof(secretid) + sizeof(hmac)); in dhcp_auth_validate() 201 dlen -= realm_len; in dhcp_auth_validate() [all …]
|
/external/libedit/src/ |
D | strlcat.c | 51 size_t dlen; in __weak_alias() local 59 dlen = d - dst; in __weak_alias() 60 n = siz - dlen; in __weak_alias() 63 return(dlen + strlen(s)); in __weak_alias() 73 return(dlen + (s - src)); /* count does not include NUL */ in __weak_alias() 81 size_t dlen = strnlen(dst, siz); in __weak_alias() 87 return dlen + strlcpy(dst + dlen, src, siz - dlen); in __weak_alias()
|
D | vis.c | 350 istrsenvisx(char *mbdst, size_t *dlen, const char *mbsrc, size_t mblength, in istrsenvisx() argument 442 if (dlen && *dlen == 0) { in istrsenvisx() 478 maxolen = dlen ? *dlen : (wcslen(start) * MB_LEN_MAX + 1); in istrsenvisx() 559 snvis(char *mbdst, size_t dlen, int c, int flags, int nextc, const char *mbextra) in snvis() argument 567 ret = istrsenvisx(mbdst, &dlen, cc, 1, flags, mbextra, NULL); in snvis() 580 strsnvis(char *mbdst, size_t dlen, const char *mbsrc, int flags, const char *mbextra) in strsnvis() argument 582 return istrsenvisx(mbdst, &dlen, mbsrc, 0, flags, mbextra, NULL); in strsnvis() 592 strsnvisx(char *mbdst, size_t dlen, const char *mbsrc, size_t len, int flags, in strsnvisx() argument 595 return istrsenvisx(mbdst, &dlen, mbsrc, len, flags, mbextra, NULL); in strsnvisx() 599 strsenvisx(char *mbdst, size_t dlen, const char *mbsrc, size_t len, int flags, in strsenvisx() argument [all …]
|
D | refresh.c | 361 Char *d, int dat, int dlen, Char *s, int num) in re_insert() argument 367 if (num > dlen - dat) in re_insert() 368 num = dlen - dat; in re_insert() 372 num, dat, dlen, ct_encode_string(d))); in re_insert() 377 b = d + dlen - 1; in re_insert() 381 d[dlen] = '\0'; /* just in case */ in re_insert() 386 num, dat, dlen, ct_encode_string(d))); in re_insert() 390 for (a = d + dat; (a < d + dlen) && (num > 0); num--) in re_insert() 398 num, dat, dlen, d, s)); in re_insert() 410 Char *d, int dat, int dlen, int num) in re_delete() argument [all …]
|
D | unvis.c | 489 strnunvisx(char *dst, size_t dlen, const char *src, int flag) in strnunvisx() argument 499 if (dlen-- == 0) { \ in strnunvisx() 550 strnunvis(char *dst, size_t dlen, const char *src) in strnunvis() argument 552 return strnunvisx(dst, dlen, src, 0); in strnunvis()
|
/external/tcpdump/missing/ |
D | strlcat.c | 53 size_t dlen; in strlcat() local 58 dlen = d - dst; in strlcat() 59 n = siz - dlen; in strlcat() 62 return(dlen + strlen(s)); in strlcat() 72 return(dlen + (s - src)); /* count does not include NUL */ in strlcat()
|
/external/tcpdump/ |
D | print-forces.c | 652 u_int dlen; in prestlv_print() local 658 dlen = len - TLV_HDRL; in prestlv_print() 659 if (dlen != RESLEN) { in prestlv_print() 660 ND_PRINT((ndo, "illegal RESULT-TLV: %d bytes!\n", dlen)); in prestlv_print() 1221 u_int dlen; in asttlv_print() local 1228 dlen = len - TLV_HDRL; in asttlv_print() 1229 if (dlen != ASTDLN) { in asttlv_print() 1230 ND_PRINT((ndo, "illegal ASTresult-TLV: %d bytes!\n", dlen)); in asttlv_print() 1279 u_int dlen; in asrtlv_print() local 1286 dlen = len - TLV_HDRL; in asrtlv_print() [all …]
|
D | print-udp.c | 131 u_int dlen = EXTRACT_16BITS(&up->uh_ulen) - sizeof(*up) - 8; in rtp_print() local 150 dlen -= 4; in rtp_print() 157 dlen, in rtp_print()
|
/external/curl/src/ |
D | tool_dirhie.c | 122 size_t dlen = strlen(dirbuildup); in create_dir_hierarchy() local 123 if(dlen) in create_dir_hierarchy() 124 snprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_ttls.c | 191 size_t pad, dlen; in eap_ttls_avp_parse() local 212 dlen = avp_length - sizeof(*avp); in eap_ttls_avp_parse() 214 if (dlen < 4) { in eap_ttls_avp_parse() 223 dlen -= 4; in eap_ttls_avp_parse() 226 wpa_hexdump(MSG_DEBUG, "EAP-TTLS: AVP data", dpos, dlen); in eap_ttls_avp_parse() 231 parse->eap = os_malloc(dlen); in eap_ttls_avp_parse() 238 os_memcpy(parse->eap, dpos, dlen); in eap_ttls_avp_parse() 239 parse->eap_len = dlen; in eap_ttls_avp_parse() 242 parse->eap_len + dlen); in eap_ttls_avp_parse() 249 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse() [all …]
|
/external/c-ares/ |
D | adig.c | 546 int type, dnsclass, ttl, dlen, status; in display_rr() local 574 dlen = DNS_RR_LEN(aptr); in display_rr() 576 if (aptr + dlen > abuf + alen) in display_rr() 612 if (p + len + 1 > aptr + dlen) in display_rr() 621 if (p + len + 1 > aptr + dlen) in display_rr() 650 if (dlen < 2) in display_rr() 677 if (p + 20 > aptr + dlen) in display_rr() 689 while (p < aptr + dlen) in display_rr() 692 if (p + len + 1 > aptr + dlen) in display_rr() 705 if (dlen != 4) in display_rr() [all …]
|
D | ares_search.c | 217 size_t dlen = strlen(domain); in cat_domain() local 219 *s = malloc(nlen + 1 + dlen + 1); in cat_domain() 224 memcpy(*s + nlen + 1, domain, dlen); in cat_domain() 225 (*s)[nlen + 1 + dlen] = 0; in cat_domain()
|
/external/iproute2/tc/ |
D | tc_stab.c | 138 unsigned i, j, dlen; in print_size_table() 140 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16); in print_size_table() 143 for (i = 0; i < dlen/12; i++) { in print_size_table() 145 for (j = 0; i * 12 + j < dlen; j++) in print_size_table()
|
D | m_ematch.c | 371 int dlen; in print_ematch_seq() local 378 dlen = RTA_PAYLOAD(tb[i]) - sizeof(*hdr); in print_ematch_seq() 381 if (dlen < 0) in print_ematch_seq() 392 if (dlen < sizeof(__u32)) in print_ematch_seq() 414 if (e->print_eopt(fd, hdr, data, dlen) < 0) in print_ematch_seq()
|
/external/curl/packages/OS400/ |
D | ccsidcurl.c | 106 convert(char * d, size_t dlen, int dccsid, in convert() argument 130 i = lslen < dlen? lslen: dlen; in convert() 150 i = dlen; in convert() 152 if((int) iconv(cd, (char * *) &s, &lslen, &d, &dlen) < 0) in convert() 155 i -= dlen; in convert() 168 size_t dlen; in dynconvert() local 174 dlen = (size_t) (slen < 0? strlen(s): slen) + 1; in dynconvert() 175 dlen *= MAX_CONV_EXPANSION; /* Allow some expansion. */ in dynconvert() 176 d = malloc(dlen); in dynconvert() 181 l = convert(d, dlen, dccsid, s, slen, sccsid); in dynconvert() [all …]
|
/external/skia/src/utils/ |
D | SkDashPath.cpp | 271 double dlen = initialDashLength; in FilterDashPath() local 274 SkASSERT(dlen >= 0); in FilterDashPath() 282 SkDoubleToScalar(distance + dlen), in FilterDashPath() 286 SkDoubleToScalar(distance + dlen), in FilterDashPath() 290 distance += dlen; in FilterDashPath() 303 dlen = intervals[index]; in FilterDashPath()
|
/external/kernel-headers/original/uapi/linux/ |
D | pg.h | 47 int dlen; /* number of bytes expected to transfer */ member 57 int dlen; /* size of device transfer request */ member
|
/external/iputils/ninfod/ |
D | ni_ifaddrs.c | 319 size_t dlen, xlen; in ni_ifaddrs() local 329 icnt = dlen = xlen = 0; in ni_ifaddrs() 362 + dlen + xlen); in ni_ifaddrs() 377 xdata = data + dlen; in ni_ifaddrs() 465 dlen += NLMSG_ALIGN(rtapayload); in ni_ifaddrs() 506 dlen += NLMSG_ALIGN(ifamap.address_len); in ni_ifaddrs() 523 if (icnt == 0 && (dlen + xlen == 0)) { in ni_ifaddrs()
|
/external/pcre/dist/ |
D | pcre_dfa_exec.c | 579 int clen, dlen; in internal_dfa_exec() local 713 dlen = 1; in internal_dfa_exec() 715 if (utf) { GETCHARLEN(d, (code + coptable[codevalue]), dlen); } else in internal_dfa_exec() 737 dlen = 0; /* Not strictly necessary, but compilers moan */ in internal_dfa_exec() 1440 dlen = 1; in internal_dfa_exec() 1441 if (!utf) d = *nptr; else { GETCHARLEN(d, nptr, dlen); } in internal_dfa_exec() 1446 nptr += dlen; in internal_dfa_exec() 1702 dlen = 1; in internal_dfa_exec() 1703 if (!utf) d = *nptr; else { GETCHARLEN(d, nptr, dlen); } in internal_dfa_exec() 1708 nptr += dlen; in internal_dfa_exec() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_ttls.c | 868 static int eap_ttls_parse_attr_eap(const u8 *dpos, size_t dlen, in eap_ttls_parse_attr_eap() argument 873 parse->eapdata = os_malloc(dlen); in eap_ttls_parse_attr_eap() 879 os_memcpy(parse->eapdata, dpos, dlen); in eap_ttls_parse_attr_eap() 880 parse->eap_len = dlen; in eap_ttls_parse_attr_eap() 882 u8 *neweap = os_realloc(parse->eapdata, parse->eap_len + dlen); in eap_ttls_parse_attr_eap() 888 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_parse_attr_eap() 890 parse->eap_len += dlen; in eap_ttls_parse_attr_eap() 903 size_t dlen; in eap_ttls_parse_avp() local 928 dlen = avp_length - sizeof(*avp); in eap_ttls_parse_avp() 930 if (dlen < 4) { in eap_ttls_parse_avp() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_xauth.c | 1378 size_t dlen = 0; local 1413 dlen = 0; 1424 dlen = iph1->rmconf->xauth->login->l - 1; 1464 dlen = pwd->l; 1469 dlen = ntohs(attr->lorv); 1470 if (dlen > 0) { 1472 mdata = binsanitize(mraw, dlen); 1492 if ((buffer = vmalloc(sizeof(*attr) + dlen)) == NULL) { 1506 attr->lorv = htons(dlen); 1515 memcpy(data, iph1->rmconf->xauth->login->v, dlen); [all …]
|
/external/wpa_supplicant_8/src/radius/ |
D | radius.c | 1348 size_t i, dlen; in radius_msg_get_attr() local 1361 dlen = attr->length - sizeof(*attr); in radius_msg_get_attr() 1363 os_memcpy(buf, (attr + 1), dlen > len ? len : dlen); in radius_msg_get_attr() 1364 return dlen; in radius_msg_get_attr() 1446 size_t dlen; in radius_msg_get_vlanid() local 1459 dlen = attr->length - sizeof(*attr); in radius_msg_get_vlanid() 1483 dlen--; in radius_msg_get_vlanid() 1485 if (dlen >= sizeof(buf)) in radius_msg_get_vlanid() 1487 os_memcpy(buf, data, dlen); in radius_msg_get_vlanid() 1488 buf[dlen] = '\0'; in radius_msg_get_vlanid() [all …]
|
/external/iproute2/ip/ |
D | tcp_metrics.c | 100 int family, i, atype, stype, dlen = 0, slen = 0; in process_msg() local 124 dlen = RTA_PAYLOAD(a); in process_msg() 134 dlen = RTA_PAYLOAD(a); in process_msg() 196 format_host(family, dlen, &daddr.data, abuf, sizeof(abuf))); in process_msg()
|
/external/ppp/pppd/ |
D | utils.c | 113 size_t dlen = strlen(dest); local 115 return dlen + strlcpy(dest + dlen, src, (len > dlen? len - dlen: 0));
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ap.c | 1375 size_t dlen; in wpas_ap_pmksa_cache_list() local 1378 dlen = os_strlen(ap_delimiter); in wpas_ap_pmksa_cache_list() 1379 if (dlen > len - reply_len) in wpas_ap_pmksa_cache_list() 1381 os_memcpy(&buf[reply_len], ap_delimiter, dlen); in wpas_ap_pmksa_cache_list() 1382 reply_len += dlen; in wpas_ap_pmksa_cache_list() 1392 dlen = os_strlen(mesh_delimiter); in wpas_ap_pmksa_cache_list() 1393 if (dlen > len - reply_len) in wpas_ap_pmksa_cache_list() 1395 os_memcpy(&buf[reply_len], mesh_delimiter, dlen); in wpas_ap_pmksa_cache_list() 1396 reply_len += dlen; in wpas_ap_pmksa_cache_list()
|