/external/tcpdump/ |
D | print-sflow.c | 474 u_int tlen; in sflow_print_counter_records() local 482 tlen = len; in sflow_print_counter_records() 486 if (tlen < sizeof(struct sflow_counter_record_t)) in sflow_print_counter_records() 501 tlen -= sizeof(struct sflow_counter_record_t); in sflow_print_counter_records() 503 if (tlen < counter_len) in sflow_print_counter_records() 508 if (print_sflow_counter_generic(ndo, tptr, tlen)) in sflow_print_counter_records() 512 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) in sflow_print_counter_records() 516 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) in sflow_print_counter_records() 520 if (print_sflow_counter_basevg(ndo, tptr, tlen)) in sflow_print_counter_records() 524 if (print_sflow_counter_vlan(ndo, tptr, tlen)) in sflow_print_counter_records() [all …]
|
D | print-rpki-rtr.c | 253 u_int encapsulated_pdu_length, text_length, tlen, error_code; in rpki_rtr_pdu_print() local 258 tlen = pdu_len; in rpki_rtr_pdu_print() 267 tlen -= sizeof(*pdu); in rpki_rtr_pdu_print() 273 (encapsulated_pdu_length <= tlen)) { in rpki_rtr_pdu_print() 279 tlen -= encapsulated_pdu_length; in rpki_rtr_pdu_print() 285 if (tlen > 4) { in rpki_rtr_pdu_print() 288 tlen -= 4; in rpki_rtr_pdu_print() 291 if (text_length && (text_length <= tlen )) { in rpki_rtr_pdu_print() 320 u_int tlen, pdu_type, pdu_len; in rpki_rtr_print() local 325 tlen = len; in rpki_rtr_print() [all …]
|
D | print-cfm.c | 290 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; in cfm_print() local 329 tlen = length - sizeof(struct cfm_common_header_t); in cfm_print() 461 if (tlen > cfm_common_header->first_tlv_offset) { in cfm_print() 463 tlen - cfm_common_header->first_tlv_offset); in cfm_print() 471 if (tlen <= cfm_common_header->first_tlv_offset) { in cfm_print() 476 tlen -= cfm_common_header->first_tlv_offset; in cfm_print() 478 while (tlen > 0) { in cfm_print() 500 ((cfm_tlv_len + sizeof(struct cfm_tlv_header_t) > tlen) || in cfm_print() 502 print_unknown_data(ndo, tptr, "\n\t ", tlen); in cfm_print() 507 tlen -= sizeof(struct cfm_tlv_header_t); in cfm_print() [all …]
|
D | print-lwapp.c | 170 int tlen; in lwapp_control_print() local 204 tlen=EXTRACT_16BITS(lwapp_trans_header->length); in lwapp_control_print() 212 tlen)); in lwapp_control_print() 221 while(tlen>0) { in lwapp_control_print() 278 tlen -= sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print() 292 int tlen; in lwapp_data_print() local 321 tlen=EXTRACT_16BITS(lwapp_trans_header->length); in lwapp_data_print() 329 tlen)); in lwapp_data_print() 332 tlen-=sizeof(const struct lwapp_transport_header); in lwapp_data_print() 335 print_unknown_data(ndo, tptr, "\n\t", tlen); in lwapp_data_print()
|
D | print-bgp.c | 968 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len; in decode_labeled_vpn_l2() local 972 tlen=plen; in decode_labeled_vpn_l2() 989 tlen-=12; in decode_labeled_vpn_l2() 1004 tlen-=15; in decode_labeled_vpn_l2() 1007 while (tlen>0) { in decode_labeled_vpn_l2() 1008 if (tlen < 3) in decode_labeled_vpn_l2() 1043 tlen-=(tlv_len<<3); /* the tlv-length is expressed in bits so lets shift it right */ in decode_labeled_vpn_l2() 1315 u_int tlen; in bgp_attr_print() local 1322 tlen=len; in bgp_attr_print() 1440 while (tlen>0) { in bgp_attr_print() [all …]
|
D | print-slow.c | 335 register const u_char *tptr, register u_int tlen) in slow_marker_lacp_print() argument 348 while(tlen>0) { in slow_marker_lacp_print() 362 tlv_len > tlen) && in slow_marker_lacp_print() 366 print_unknown_data(ndo, tptr+sizeof(struct tlv_header_t), "\n\t ", tlen); in slow_marker_lacp_print() 444 tlen-=tlv_len; in slow_marker_lacp_print() 453 register const u_char *tptr, register u_int tlen) in slow_oam_print() argument 482 tlen -= sizeof(struct slow_oam_common_header_t); in slow_oam_print() 492 while (tlen > 0) { in slow_oam_print() 560 tlen -= ptr.slow_oam_tlv_header->length; in slow_oam_print() 566 while (tlen > 0) { in slow_oam_print() [all …]
|
D | print-vqp.c | 109 int tlen; in vqp_print() local 113 tlen = len; in vqp_print() 150 tlen-=sizeof(const struct vqp_common_header_t); in vqp_print() 152 while (nitems > 0 && tlen > 0) { in vqp_print() 158 tlen-=sizeof(struct vqp_obj_tlv_t); in vqp_print() 194 tlen -= vqp_obj_len; in vqp_print()
|
D | print-lldp.c | 1111 u_int tlen, tlv_type, tlv_len; in lldp_private_dcbx_print() local 1128 tlen = len - 4; in lldp_private_dcbx_print() 1130 while (tlen >= sizeof(tlv)) { in lldp_private_dcbx_print() 1140 tlen -= sizeof(tlv); in lldp_private_dcbx_print() 1149 if (tlen < tlv_len) { in lldp_private_dcbx_print() 1259 tlen -= tlv_len; in lldp_private_dcbx_print() 1318 u_int tlen; in lldp_mgmt_addr_tlv_print() local 1321 tlen = len; in lldp_mgmt_addr_tlv_print() 1324 if (tlen < 1) { in lldp_mgmt_addr_tlv_print() 1328 tlen--; in lldp_mgmt_addr_tlv_print() [all …]
|
D | print-rsvp.c | 640 const char *ident, u_int tlen) in rsvp_obj_print() argument 659 while(tlen>=sizeof(struct rsvp_object_header)) { in rsvp_obj_print() 696 if(tlen < rsvp_obj_len) { in rsvp_obj_print() 1788 tlen-=rsvp_obj_len; in rsvp_obj_print() 1802 u_short plen, tlen, subtlen; in rsvp_print() local 1829 plen = tlen = EXTRACT_16BITS(rsvp_com_header->length); in rsvp_print() 1836 tlen, in rsvp_print() 1846 if (tlen < sizeof(const struct rsvp_common_header)) { in rsvp_print() 1847 ND_PRINT((ndo, "ERROR: common header too short %u < %lu", tlen, in rsvp_print() 1853 tlen-=sizeof(const struct rsvp_common_header); in rsvp_print() [all …]
|
D | print-eigrp.c | 213 u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; in eigrp_print() local 248 tlen=len-sizeof(struct eigrp_common_header); in eigrp_print() 262 tlen)); in eigrp_print() 266 while(tlen>0) { in eigrp_print() 276 eigrp_tlv_len > tlen) { in eigrp_print() 277 print_unknown_data(ndo,tptr+sizeof(struct eigrp_tlv_header),"\n\t ",tlen); in eigrp_print() 469 tlen-=eigrp_tlv_len; in eigrp_print()
|
/external/ipsec-tools/src/racoon/ |
D | isakmp_inf.c | 453 int tlen, num_spi; local 481 tlen = ntohs(delete->h.len) - sizeof(struct isakmp_pl_d); 483 if (tlen != num_spi * delete->spi_size) { 582 int tlen; local 592 tlen = sizeof(*d) + sizeof(isakmp_index); 593 payload = vmalloc(tlen); 602 d->h.len = htons(tlen); 628 int tlen; local 656 tlen = sizeof(*d) + pr->spisize; 657 payload = vmalloc(tlen); [all …]
|
D | isakmp_quick.c | 156 int tlen; local 232 tlen = + sizeof(*gen) + iph2->sa->l 235 tlen += (sizeof(*gen) + iph2->dhpub->l); 237 tlen += sizeof(*gen) + iph2->id->l; 239 tlen += sizeof(*gen) + iph2->id_p->l; 241 body = vmalloc(tlen); 322 int tlen; local 379 tlen = iph2->nonce->l 381 hbuf = vmalloc(tlen); 395 tlen = 0; /* count payload length except of HASH payload. */ [all …]
|
D | isakmp_cfg.c | 145 int tlen; local 188 tlen = dmsg->l - sizeof(*packet); 192 while ((tlen > 0) && (np != ISAKMP_NPTYPE_NONE)) { 194 if (tlen < sizeof(*ph)) { 201 if (tlen < ntohs(ph->len)) { 264 tlen -= ntohs(ph->len); 321 int tlen; local 328 tlen = ntohs(attrpl->h.len); 330 tlen -= sizeof(*attrpl); 332 while (tlen > 0) { [all …]
|
D | admin.c | 508 int tlen; local 512 tlen = sizeof(*combuf) + buf->l; 514 tlen = sizeof(*combuf); 516 retbuf = racoon_calloc(1, tlen); 524 ((struct admin_com *)retbuf)->ac_len = tlen; 529 tlen = send(so, retbuf, tlen, 0); 531 if (tlen < 0) {
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | common.c | 174 int i, tag, tlen, text; in pppoe_printpkt() local 217 for (i = 0; i + TAG_HDR_SIZE <= len; i += tlen) { in pppoe_printpkt() 219 tlen = (packet->payload[i+2] << 8) + packet->payload[i+3]; in pppoe_printpkt() 220 if (i + tlen + TAG_HDR_SIZE > len) in pppoe_printpkt() 267 if (tlen) { in pppoe_printpkt() 269 printer(arg, " %.*v", tlen, &packet->payload[i]); in pppoe_printpkt() 270 else if (tlen <= 32) in pppoe_printpkt() 271 printer(arg, " %.*B", tlen, &packet->payload[i]); in pppoe_printpkt() 274 &packet->payload[i], tlen); in pppoe_printpkt()
|
/external/ipsec-tools/src/libipsec/ |
D | policy_parse.y | 101 static int tlen = 0; /* total length of pbuf */ variable 478 tlen = 0; in init_x_policy() 485 tlen = sizeof(struct sadb_x_policy); in init_x_policy() 487 memset(pbuf, 0, tlen); in init_x_policy() 506 offset = tlen; in init_x_policy() 523 tlen += reqlen; /* increment to total length */ 525 n = realloc(pbuf, tlen); 593 tlen = 0; 611 ((struct sadb_x_policy *)pbuf)->sadb_x_policy_len = PFKEY_UNIT64(tlen);
|
D | key_debug.c | 111 int tlen, extlen; local 124 tlen = PFKEY_UNUNIT64(base->sadb_msg_len) - sizeof(struct sadb_msg); 127 while (tlen > 0) { 135 if (ext->sadb_ext_len > tlen) { 204 tlen -= extlen; 461 int tlen; local 464 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl); 467 while (tlen > 0) { 491 if (xisr->sadb_x_ipsecrequest_len > tlen) { 496 tlen -= xisr->sadb_x_ipsecrequest_len; [all …]
|
/external/curl/src/ |
D | mkhelp.pl | 70 $tlen = length($text); 72 if($wline && ($olen == $tlen)) { 81 $olen = $tlen;
|
/external/toybox/scripts/ |
D | config2help.c | 258 int clen, tlen; in main() local 277 tdashlines = grab_dashlines(&throw->help, &tfrom, &tlen); in main() 284 char **new = xmalloc(sizeof(char *)*(clen+tlen)); in main() 287 memcpy(new+clen, tdashlines, sizeof(char *)*tlen); in main() 290 qsort(new, clen+tlen, sizeof(char *), (void *)dashlinesort); in main() 316 tlen += clen; in main() 318 for (clen = 0; clen < tlen; clen++) in main()
|
/external/boringssl/src/crypto/poly1305/ |
D | poly1305_arm.c | 239 unsigned int tlen = 1048576; in CRYPTO_poly1305_update_neon() local 240 if (in_len < tlen) { in CRYPTO_poly1305_update_neon() 241 tlen = in_len; in CRYPTO_poly1305_update_neon() 243 tlen -= blocks(h, precomp, in, tlen); in CRYPTO_poly1305_update_neon() 244 in_len -= tlen; in CRYPTO_poly1305_update_neon() 245 in += tlen; in CRYPTO_poly1305_update_neon()
|
/external/icu/icu4c/source/test/intltest/ |
D | mnkytst.cpp | 83 int32_t tlen = checkValue((rand() - source.length()) % source.length()); in TestCollationKey() local 87 source.extract(MIN(t, tlen), MAX(t, tlen), subt); in TestCollationKey() 158 int32_t tlen = checkValue((rand() - source.length()) % source.length()); in TestCompare() local 162 source.extract(MIN(t, tlen), MAX(t, tlen), subt); in TestCompare()
|
/external/wpa_supplicant_8/src/utils/ |
D | common.c | 648 size_t tlen; in wpa_config_parse_string() local 653 tlen = pos - value; in wpa_config_parse_string() 654 tstr = dup_binstr(value, tlen); in wpa_config_parse_string() 658 str = os_malloc(tlen + 1); in wpa_config_parse_string() 664 *len = printf_decode((u8 *) str, tlen + 1, tstr); in wpa_config_parse_string() 670 size_t tlen, hlen = os_strlen(value); in wpa_config_parse_string() local 673 tlen = hlen / 2; in wpa_config_parse_string() 674 str = os_malloc(tlen + 1); in wpa_config_parse_string() 677 if (hexstr2bin(value, str, tlen)) { in wpa_config_parse_string() 681 str[tlen] = '\0'; in wpa_config_parse_string() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | affixpatternparser.cpp | 153 int32_t tlen = tokens.length(); in addLiteral() local 155 UChar *tokenChars = tokens.getBuffer(tlen + 4); in addLiteral() 160 int32_t tLiteralStart = tlen; in addLiteral() 170 tlen = tLiteralStart; in addLiteral() 171 tokenChars[tlen++] = PACK_TOKEN_AND_LENGTH(kLiteral, literalLength & 0xFF); in addLiteral() 174 tokenChars[tlen++] = PACK_TOKEN_AND_LENGTH(kLiteral | 0x80, literalLength & 0xFF); in addLiteral() 177 tokens.releaseBuffer(tlen); in addLiteral() 572 int32_t tlen = tokens->length(); in nextToken() local 573 if (nextTokenIndex == tlen) { in nextToken() 580 while (nextTokenIndex < tlen && in nextToken()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 55 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() local 57 String subt = source.substring(Math.min(t, tlen), Math.min(t + tlen, source.length())); in TestCollationKey() 132 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() local 134 String subt = source.substring(Math.min(t, tlen), Math.min(t + tlen, source.length())); in TestCompare()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/ |
D | CollationMonkeyTest.java | 59 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() local 61 String subt = source.substring(Math.min(t, tlen), Math.min(t + tlen, source.length())); in TestCollationKey() 136 … int tlen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() local 138 String subt = source.substring(Math.min(t, tlen), Math.min(t + tlen, source.length())); in TestCompare()
|