/external/linux-kselftest/tools/testing/selftests/net/ |
D | udpgso.c | 65 int tlen; /* send() buffer size, may exceed mss */ member 78 .tlen = 1, 83 .tlen = CONST_MSS_V4, 88 .tlen = CONST_MSS_V4 + 1, 93 .tlen = CONST_MSS_V4, 99 .tlen = CONST_MSS_V4 + 1, 106 .tlen = CONST_MSS_V4 * 2, 112 .tlen = (CONST_MSS_V4 * 2) + 1, 119 .tlen = (ETH_MAX_MTU / CONST_MSS_V4) * CONST_MSS_V4, 126 .tlen = ETH_MAX_MTU - CONST_HDRLEN_V4, [all …]
|
/external/tcpdump/ |
D | print-rpki-rtr.c | 295 u_int encapsulated_pdu_length, text_length, tlen, error_code; in rpki_rtr_pdu_print() local 297 tlen = sizeof(rpki_rtr_pdu); in rpki_rtr_pdu_print() 299 if (pdu_len < tlen + 4) in rpki_rtr_pdu_print() 301 ND_TCHECK2(*tptr, tlen + 4); in rpki_rtr_pdu_print() 307 tlen += 4; in rpki_rtr_pdu_print() 328 if (pdu_len < tlen + encapsulated_pdu_length) in rpki_rtr_pdu_print() 331 ND_TCHECK2(*tptr, tlen + encapsulated_pdu_length); in rpki_rtr_pdu_print() 335 rpki_rtr_pdu_print(ndo, tptr + tlen, in rpki_rtr_pdu_print() 338 tlen += encapsulated_pdu_length; in rpki_rtr_pdu_print() 341 if (pdu_len < tlen + 4) in rpki_rtr_pdu_print() [all …]
|
D | print-sflow.c | 494 u_int tlen; in sflow_print_counter_records() local 502 tlen = len; in sflow_print_counter_records() 506 if (tlen < sizeof(struct sflow_counter_record_t)) in sflow_print_counter_records() 522 tlen -= sizeof(struct sflow_counter_record_t); in sflow_print_counter_records() 524 if (tlen < counter_len) in sflow_print_counter_records() 529 if (print_sflow_counter_generic(ndo, tptr, tlen)) in sflow_print_counter_records() 533 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) in sflow_print_counter_records() 537 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) in sflow_print_counter_records() 541 if (print_sflow_counter_basevg(ndo, tptr, tlen)) in sflow_print_counter_records() 545 if (print_sflow_counter_vlan(ndo, tptr, tlen)) in sflow_print_counter_records() [all …]
|
D | print-cfm.c | 283 u_int hexdump, tlen, cfm_tlv_len, cfm_tlv_type, ccm_interval; in cfm_print() local 324 tlen = length - sizeof(struct cfm_common_header_t); in cfm_print() 329 if (cfm_common_header->first_tlv_offset > tlen) { in cfm_print() 330 ND_PRINT((ndo, " (too large, must be <= %u)", tlen)); in cfm_print() 342 if (tlen < sizeof(*msg_ptr.cfm_ccm)) in cfm_print() 472 if (tlen < sizeof(*msg_ptr.cfm_ltm)) in cfm_print() 495 if (tlen < sizeof(*msg_ptr.cfm_ltr)) in cfm_print() 521 tlen - cfm_common_header->first_tlv_offset); in cfm_print() 526 tlen -= cfm_common_header->first_tlv_offset; in cfm_print() 528 while (tlen > 0) { in cfm_print() [all …]
|
D | print-vqp.c | 109 u_int tlen; in vqp_print() local 113 tlen = len; in vqp_print() 116 if (sizeof(struct vqp_common_header_t) > tlen) in vqp_print() 152 tlen-=sizeof(const struct vqp_common_header_t); in vqp_print() 154 while (nitems > 0 && tlen > 0) { in vqp_print() 158 if (sizeof(struct vqp_obj_tlv_t) > tlen) in vqp_print() 163 tlen-=sizeof(struct vqp_obj_tlv_t); in vqp_print() 176 if (vqp_obj_len > tlen) in vqp_print() 205 tlen -= vqp_obj_len; in vqp_print()
|
D | print-slow.c | 350 register const u_char *tptr, register u_int tlen, in slow_marker_lacp_print() argument 364 while(tlen>0) { in slow_marker_lacp_print() 366 if (tlen < sizeof(struct tlv_header_t)) in slow_marker_lacp_print() 396 if (tlen < tlv_len) in slow_marker_lacp_print() 477 tlen-=tlv_len; in slow_marker_lacp_print() 491 register const u_char *tptr, register u_int tlen) in slow_oam_print() argument 519 if (tlen < sizeof(*ptr.slow_oam_common_header)) in slow_oam_print() 523 tlen -= sizeof(struct slow_oam_common_header_t); in slow_oam_print() 533 while (tlen > 0) { in slow_oam_print() 535 if (tlen < sizeof(*ptr.slow_oam_tlv_header)) in slow_oam_print() [all …]
|
D | print-lwapp.c | 171 int tlen; in lwapp_control_print() local 205 tlen=EXTRACT_16BITS(lwapp_trans_header->length); in lwapp_control_print() 213 tlen)); in lwapp_control_print() 222 while(tlen>0) { in lwapp_control_print() 279 tlen -= sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print() 293 int tlen; in lwapp_data_print() local 322 tlen=EXTRACT_16BITS(lwapp_trans_header->length); in lwapp_data_print() 330 tlen)); in lwapp_data_print() 333 tlen-=sizeof(const struct lwapp_transport_header); in lwapp_data_print() 336 print_unknown_data(ndo, tptr, "\n\t", tlen); in lwapp_data_print()
|
D | print-bgp.c | 1028 int plen,tlen,stringlen,tlv_type,tlv_len,ttlv_len; in decode_labeled_vpn_l2() local 1032 tlen=plen; in decode_labeled_vpn_l2() 1048 tlen-=12; in decode_labeled_vpn_l2() 1063 tlen-=15; in decode_labeled_vpn_l2() 1066 while (tlen>0) { in decode_labeled_vpn_l2() 1067 if (tlen < 3) in decode_labeled_vpn_l2() 1102 tlen-=(tlv_len<<3); /* the tlv-length is expressed in bits so lets shift it right */ in decode_labeled_vpn_l2() 1372 u_int tlen; in bgp_attr_print() local 1378 tlen=len; in bgp_attr_print() 1493 while (tlen>0) { in bgp_attr_print() [all …]
|
D | print-lldp.c | 1156 u_int tlen, tlv_type, tlv_len; in lldp_private_dcbx_print() local 1173 tlen = len - 4; in lldp_private_dcbx_print() 1175 while (tlen >= sizeof(tlv)) { in lldp_private_dcbx_print() 1185 tlen -= sizeof(tlv); in lldp_private_dcbx_print() 1194 if (tlen < tlv_len) { in lldp_private_dcbx_print() 1304 tlen -= tlv_len; in lldp_private_dcbx_print() 1363 u_int tlen; in lldp_mgmt_addr_tlv_print() local 1366 tlen = len; in lldp_mgmt_addr_tlv_print() 1369 if (tlen < 1) { in lldp_mgmt_addr_tlv_print() 1373 tlen--; in lldp_mgmt_addr_tlv_print() [all …]
|
D | print-rsvp.c | 662 const char *ident, u_int tlen, in rsvp_obj_print() argument 682 while(tlen>=sizeof(struct rsvp_object_header)) { in rsvp_obj_print() 719 if(tlen < rsvp_obj_len) { in rsvp_obj_print() 1834 tlen-=rsvp_obj_len; in rsvp_obj_print() 1852 u_short plen, tlen; in rsvp_print() local 1879 plen = tlen = EXTRACT_16BITS(rsvp_com_header->length); in rsvp_print() 1886 tlen, in rsvp_print() 1890 if (tlen < sizeof(const struct rsvp_common_header)) { in rsvp_print() 1891 ND_PRINT((ndo, "ERROR: common header too short %u < %lu", tlen, in rsvp_print() 1897 tlen-=sizeof(const struct rsvp_common_header); in rsvp_print() [all …]
|
/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/u-boot/net/ |
D | cdp.c | 243 ushort type, tlen; in cdp_receive() local 283 tlen = ntohs(ss[1]); in cdp_receive() 284 if (tlen > len) in cdp_receive() 287 pkt += tlen; in cdp_receive() 288 len -= tlen; in cdp_receive() 291 tlen -= 4; in cdp_receive() 311 while (tlen > 0) { in cdp_receive() 312 if (tlen < 3) in cdp_receive() 324 t += 3; tlen -= 3; in cdp_receive()
|
/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/libsrtp2/crypto/cipher/ |
D | aes_gcm_nss.c | 81 int tlen) in srtp_aes_gcm_nss_alloc() argument 88 debug_print(srtp_mod_aes_gcm, "allocating cipher with tag length %d", tlen); in srtp_aes_gcm_nss_alloc() 98 if (tlen != GCM_AUTH_TAG_LEN && tlen != GCM_AUTH_TAG_LEN_8) { in srtp_aes_gcm_nss_alloc() 137 gcm->tag_size = tlen; in srtp_aes_gcm_nss_alloc() 138 gcm->params.ulTagBits = 8 * tlen; in srtp_aes_gcm_nss_alloc() 144 gcm->tag_size = tlen; in srtp_aes_gcm_nss_alloc() 145 gcm->params.ulTagBits = 8 * tlen; in srtp_aes_gcm_nss_alloc()
|
D | aes_gcm_ossl.c | 79 int tlen) in srtp_aes_gcm_openssl_alloc() argument 85 debug_print(srtp_mod_aes_gcm, "allocating cipher with tag length %d", tlen); in srtp_aes_gcm_openssl_alloc() 95 if (tlen != GCM_AUTH_TAG_LEN && tlen != GCM_AUTH_TAG_LEN_8) { in srtp_aes_gcm_openssl_alloc() 129 gcm->tag_len = tlen; in srtp_aes_gcm_openssl_alloc() 135 gcm->tag_len = tlen; in srtp_aes_gcm_openssl_alloc()
|
/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 | 62 $tlen = length($text); 64 if($wline && ($olen == $tlen)) { 73 $olen = $tlen;
|
/external/boringssl/src/crypto/poly1305/ |
D | poly1305_arm.c | 242 unsigned int tlen = 1048576; in CRYPTO_poly1305_update_neon() local 243 if (in_len < tlen) { in CRYPTO_poly1305_update_neon() 244 tlen = in_len; in CRYPTO_poly1305_update_neon() 246 tlen -= blocks(h, precomp, in, tlen); in CRYPTO_poly1305_update_neon() 247 in_len -= tlen; in CRYPTO_poly1305_update_neon() 248 in += tlen; in CRYPTO_poly1305_update_neon()
|
/external/icu/icu4c/source/test/intltest/ |
D | mnkytst.cpp | 85 int32_t tlen = checkValue((rand() - source.length()) % source.length()); in TestCollationKey() local 89 source.extract(MIN(t, tlen), MAX(t, tlen), subt); in TestCollationKey() 160 int32_t tlen = checkValue((rand() - source.length()) % source.length()); in TestCompare() local 164 source.extract(MIN(t, tlen), MAX(t, tlen), subt); in TestCompare()
|
/external/python/cpython2/Lib/compiler/ |
D | misc.py | 61 tlen = len(klass) + len(name) 62 if tlen > MANGLE_LEN: 63 klass = klass[:MANGLE_LEN-tlen]
|
/external/toybox/scripts/ |
D | config2help.c | 355 int clen, tlen; in main() local 376 tdashlines = grab_dashlines(&throw->help, &tfrom, &tlen); in main() 383 char **new = xmalloc(sizeof(char *)*(clen+tlen)); in main() 386 memcpy(new+clen, tdashlines, sizeof(char *)*tlen); in main() 389 qsort(new, clen+tlen, sizeof(char *), (void *)dashlinesort); in main() 415 tlen += clen; in main() 417 for (clen = 0; clen < tlen; clen++) in main()
|