/external/tcpdump/ |
D | print-lldp.c | 641 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument 648 if (tlv_len < 4) { in lldp_private_8021_print() 659 if (tlv_len < 6) { in lldp_private_8021_print() 666 if (tlv_len < 7) { in lldp_private_8021_print() 675 if (tlv_len < 6) { in lldp_private_8021_print() 679 if (tlv_len < 7) { in lldp_private_8021_print() 683 if (tlv_len < 7+sublen) { in lldp_private_8021_print() 690 if (tlv_len < 5) { in lldp_private_8021_print() 694 if (tlv_len < 5+sublen) { in lldp_private_8021_print() 701 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CONGESTION_NOTIFICATION_LENGTH){ in lldp_private_8021_print() [all …]
|
D | print-vtp.c | 124 int type, len, tlv_len, tlv_value; in vtp_print() local 268 tlv_len = *(tptr+1); in vtp_print() 277 if (type == 0 || tlv_len == 0) { in vtp_print() 281 ND_TCHECK2(*tptr, tlv_len * 2 +2); in vtp_print() 325 print_unknown_data(ndo, tptr, "\n\t\t ", 2 + tlv_len*2); in vtp_print() 328 len -= 2 + tlv_len*2; in vtp_print() 329 tptr += 2 + tlv_len*2; in vtp_print()
|
D | print-slow.c | 339 u_int tlv_len, tlv_tlen; in slow_marker_lacp_print() local 352 tlv_len = tlv_header->length; in slow_marker_lacp_print() 359 tlv_len)); in slow_marker_lacp_print() 361 if ((tlv_len < sizeof(struct tlv_header_t) || in slow_marker_lacp_print() 362 tlv_len > tlen) && in slow_marker_lacp_print() 371 tlv_tlen=tlv_len-sizeof(struct tlv_header_t); in slow_marker_lacp_print() 374 ND_TCHECK2(*tptr, tlv_len); in slow_marker_lacp_print() 418 if (tlv_len == 0) { in slow_marker_lacp_print() 419 tlv_len = sizeof(tlv_ptr.lacp_marker_tlv_terminator->pad) + in slow_marker_lacp_print() 423 ND_PRINT((ndo, " (=%u)", tlv_len)); in slow_marker_lacp_print() [all …]
|
D | print-ldp.c | 245 u_short tlv_type,tlv_len,tlv_tlen,af,ft_flags; in ldp_tlv_print() local 253 tlv_len=EXTRACT_16BITS(ldp_tlv_header->length); in ldp_tlv_print() 254 if (tlv_len + 4 > msg_tlen) { in ldp_tlv_print() 258 tlv_tlen=tlv_len; in ldp_tlv_print() 267 tlv_len, in ldp_tlv_print() 415 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print() 535 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print() 543 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
|
D | print-juniper.c | 1094 juniper_read_tlv_value(const u_char *p, u_int tlv_type, u_int tlv_len) in juniper_read_tlv_value() argument 1100 switch (tlv_len) { in juniper_read_tlv_value() 1119 switch (tlv_len) { in juniper_read_tlv_value() 1146 uint8_t tlv_type,tlv_len; in juniper_parse_header() local 1200 tlv_len = *(tptr++); in juniper_parse_header() 1204 if (tlv_type == 0 || tlv_len == 0) in juniper_parse_header() 1211 tlv_len)); in juniper_parse_header() 1213 tlv_value = juniper_read_tlv_value(tptr, tlv_type, tlv_len); in juniper_parse_header() 1247 tptr+=tlv_len; in juniper_parse_header() 1248 jnx_ext_len -= tlv_len+JUNIPER_EXT_TLV_OVERHEAD; in juniper_parse_header()
|
D | print-isoclns.c | 2081 uint8_t pdu_type, max_area, id_length, tlv_type, tlv_len, tmp, alen, lan_alen, prefix_len; in isis_print() local 2436 tlv_len = *pptr++; in isis_print() 2437 tmp =tlv_len; /* copy temporary len & pointer to packet data */ in isis_print() 2440 if (tlv_len > packet_len) { in isis_print() 2450 tlv_len)); in isis_print() 2452 if (tlv_len == 0) /* something is malformed */ in isis_print() 2576 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print() 2659 for(i=1;i<tlv_len;i++) { in isis_print() 2666 for(i=1;i<tlv_len;i++) { in isis_print() 2671 if (tlv_len != ISIS_SUBTLV_AUTH_MD5_LEN+1) in isis_print() [all …]
|
D | print-bgp.c | 968 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len; in decode_labeled_vpn_l2() local 1012 tlv_len=EXTRACT_16BITS(pptr); in decode_labeled_vpn_l2() 1013 ttlv_len=tlv_len; in decode_labeled_vpn_l2() 1021 tlv_len); in decode_labeled_vpn_l2() 1038 tlv_len); 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()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_common.c | 215 u8 tlv_type, tlv_len; in erp_parse_tlvs() local 241 tlv_len = *pos++; in erp_parse_tlvs() 242 if (tlv_len > (unsigned) (end - pos)) { in erp_parse_tlvs() 253 tlvs->keyname_len = tlv_len; in erp_parse_tlvs() 258 tlvs->domain_len = tlv_len; in erp_parse_tlvs() 260 pos += tlv_len; in erp_parse_tlvs() 270 tlv_len = *pos++; in erp_parse_tlvs() 271 if (tlv_len > (unsigned) (end - pos)) { in erp_parse_tlvs() 276 pos += tlv_len; in erp_parse_tlvs()
|
/external/kernel-headers/original/uapi/linux/ |
D | tipc_config.h | 243 __be16 tlv_len; /* TLV length (descriptor + value) */ member 266 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 277 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 282 tlv->tlv_len = htons(len); in TLV_SET_LEN() 298 int tlv_len; in TLV_SET() local 300 tlv_len = TLV_LENGTH(len); in TLV_SET() 303 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET() 305 memcpy(TLV_DATA(tlv_ptr), data, tlv_len); in TLV_SET() 343 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_peap.c | 662 int tlv_type, mandatory, tlv_len; in eap_peap_process_phase2_tlv() local 676 tlv_len = ((int) pos[2] << 8) | pos[3]; in eap_peap_process_phase2_tlv() 679 if ((size_t) tlv_len > left) { in eap_peap_process_phase2_tlv() 681 "(tlv_len=%d left=%lu)", tlv_len, in eap_peap_process_phase2_tlv() 689 result_tlv_len = tlv_len; in eap_peap_process_phase2_tlv() 693 crypto_tlv_len = tlv_len; in eap_peap_process_phase2_tlv() 707 pos += tlv_len; in eap_peap_process_phase2_tlv() 708 left -= tlv_len; in eap_peap_process_phase2_tlv() 782 int tlv_type, mandatory, tlv_len, vtlv_len; in eap_peap_process_phase2_soh() local 799 tlv_len = ((int) pos[2] << 8) | pos[3]; in eap_peap_process_phase2_soh() [all …]
|
/external/wpa_supplicant_8/src/eap_peer/ |
D | eap_peap.c | 473 size_t left, tlv_len; in eap_tlv_process() local 488 tlv_len = WPA_GET_BE16(pos); in eap_tlv_process() 491 if (tlv_len > left) { in eap_tlv_process() 494 (unsigned long) tlv_len, in eap_tlv_process() 501 result_tlv_len = tlv_len; in eap_tlv_process() 505 crypto_tlv_len = tlv_len; in eap_tlv_process() 522 pos += tlv_len; in eap_tlv_process() 523 left -= tlv_len; in eap_tlv_process()
|
D | tncc.c | 1174 u8 *tlv_len, *tlv_len2, *outer_len, *inner_len, *ssoh_len, *end; in tncc_build_soh() local 1190 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1275 WPA_PUT_BE16(tlv_len, end - tlv_len - 2); in tncc_build_soh()
|
D | eap_fast.c | 1402 size_t tlv_len, olen; in eap_fast_use_pac_opaque() local 1406 tlv_len = sizeof(*ehdr) + olen; in eap_fast_use_pac_opaque() 1407 tlv = os_malloc(tlv_len); in eap_fast_use_pac_opaque() 1417 tlv, tlv_len) < 0) { in eap_fast_use_pac_opaque()
|
/external/libnfc-nci/src/nfa/int/ |
D | nfa_dta_int.h | 111 UINT8 tlv_len; member
|