/external/tcpdump/ |
D | print-lldp.c | 649 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument 656 if (tlv_len < 4) { in lldp_private_8021_print() 667 if (tlv_len < 6) { in lldp_private_8021_print() 674 if (tlv_len < 7) { in lldp_private_8021_print() 683 if (tlv_len < 6) { in lldp_private_8021_print() 687 if (tlv_len < 7) { in lldp_private_8021_print() 691 if (tlv_len < 7+sublen) { in lldp_private_8021_print() 698 if (tlv_len < 5) { in lldp_private_8021_print() 702 if (tlv_len < 5+sublen) { in lldp_private_8021_print() 709 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CONGESTION_NOTIFICATION_LENGTH){ in lldp_private_8021_print() [all …]
|
D | print-vtp.c | 122 int type, len, tlv_len, tlv_value, mgmtd_len; in vtp_print() local 291 tlv_len = *(tptr+1); in vtp_print() 297 if (len < tlv_len * 2 + 2) { in vtp_print() 301 ND_TCHECK2(*tptr, tlv_len * 2 +2); in vtp_print() 307 if (tlv_len != 1) { in vtp_print() 308 ND_PRINT((ndo, " (invalid TLV length %u != 1)", tlv_len)); in vtp_print() 353 print_unknown_data(ndo, tptr, "\n\t\t ", 2 + tlv_len*2); in vtp_print() 357 len -= 2 + tlv_len*2; in vtp_print() 358 tptr += 2 + tlv_len*2; in vtp_print()
|
D | print-nsh.c | 62 uint8_t tlv_len; in nsh_print() local 132 tlv_len = *bp; in nsh_print() 136 tlv_class, tlv_type, tlv_len)); in nsh_print() 140 if (length - 2 < n + tlv_len) { in nsh_print() 145 for (vn = 0; vn < tlv_len; vn++) { in nsh_print() 150 n += tlv_len; in nsh_print()
|
D | print-slow.c | 355 u_int tlv_len, tlv_tlen; in slow_marker_lacp_print() local 371 tlv_len = tlv_header->length; in slow_marker_lacp_print() 378 tlv_len)); in slow_marker_lacp_print() 389 if (tlv_len < sizeof(struct tlv_header_t)) { in slow_marker_lacp_print() 396 if (tlen < tlv_len) in slow_marker_lacp_print() 399 ND_TCHECK2(*tptr, tlv_len); in slow_marker_lacp_print() 402 tlv_tlen=tlv_len-sizeof(struct tlv_header_t); in slow_marker_lacp_print() 473 tlv_len-sizeof(struct tlv_header_t)); in slow_marker_lacp_print() 476 tptr+=tlv_len; in slow_marker_lacp_print() 477 tlen-=tlv_len; in slow_marker_lacp_print()
|
D | print-ldp.c | 246 u_short tlv_type,tlv_len,tlv_tlen,af,ft_flags; in ldp_tlv_print() local 254 tlv_len=EXTRACT_16BITS(ldp_tlv_header->length); in ldp_tlv_print() 255 if (tlv_len + 4 > msg_tlen) { in ldp_tlv_print() 259 tlv_tlen=tlv_len; in ldp_tlv_print() 268 tlv_len, in ldp_tlv_print() 414 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print() 534 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print() 542 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
|
D | print-juniper.c | 1132 juniper_read_tlv_value(const u_char *p, u_int tlv_type, u_int tlv_len) in juniper_read_tlv_value() argument 1138 switch (tlv_len) { in juniper_read_tlv_value() 1157 switch (tlv_len) { in juniper_read_tlv_value() 1184 uint8_t tlv_type,tlv_len; in juniper_parse_header() local 1238 tlv_len = *(tptr++); in juniper_parse_header() 1242 if (tlv_type == 0 || tlv_len == 0) in juniper_parse_header() 1244 if (tlv_len+JUNIPER_EXT_TLV_OVERHEAD > jnx_ext_len) in juniper_parse_header() 1251 tlv_len)); in juniper_parse_header() 1253 tlv_value = juniper_read_tlv_value(tptr, tlv_type, tlv_len); in juniper_parse_header() 1287 tptr+=tlv_len; in juniper_parse_header() [all …]
|
D | print-isoclns.c | 2188 uint8_t pdu_type, max_area, id_length, tlv_type, tlv_len, tmp, alen, lan_alen, prefix_len; in isis_print() local 2547 tlv_len = *pptr++; in isis_print() 2548 tmp =tlv_len; /* copy temporary len & pointer to packet data */ in isis_print() 2558 tlv_len)); in isis_print() 2560 if (tlv_len == 0) /* something is invalid */ in isis_print() 2563 if (packet_len < tlv_len) in isis_print() 2681 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print() 2760 if (fn_printzp(ndo, tptr + 1, tlv_len - 1, ndo->ndo_snapend)) in isis_print() 2764 for(i=1;i<tlv_len;i++) { in isis_print() 2768 if (tlv_len != ISIS_SUBTLV_AUTH_MD5_LEN+1) in isis_print() [all …]
|
D | print-bgp.c | 1028 int plen,tlen,stringlen,tlv_type,tlv_len,ttlv_len; in decode_labeled_vpn_l2() local 1071 tlv_len=EXTRACT_16BITS(pptr); in decode_labeled_vpn_l2() 1072 ttlv_len=tlv_len; in decode_labeled_vpn_l2() 1080 tlv_len); in decode_labeled_vpn_l2() 1097 tlv_len); 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()
|
/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 | 244 __be16 tlv_len; /* TLV length (descriptor + value) */ member 267 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 278 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 283 tlv->tlv_len = htons(len); in TLV_SET_LEN() 299 int tlv_len; in TLV_SET() local 301 tlv_len = TLV_LENGTH(len); in TLV_SET() 304 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET() 306 memcpy(TLV_DATA(tlv_ptr), data, tlv_len); in TLV_SET() 344 __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 | 1173 u8 *tlv_len, *tlv_len2, *outer_len, *inner_len, *ssoh_len, *end; in tncc_build_soh() local 1189 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1274 WPA_PUT_BE16(tlv_len, end - tlv_len - 2); in tncc_build_soh()
|
D | eap_fast.c | 1403 size_t tlv_len, olen; in eap_fast_use_pac_opaque() local 1407 tlv_len = sizeof(*ehdr) + olen; in eap_fast_use_pac_opaque() 1408 tlv = os_malloc(tlv_len); in eap_fast_use_pac_opaque() 1418 tlv, tlv_len) < 0) { in eap_fast_use_pac_opaque()
|
/external/wpa_supplicant_8/src/ap/ |
D | wpa_auth_ft.c | 120 u16 type, size_t *tlv_len, const u8 **tlv_data) in wpa_ft_rrb_get_tlv() argument 143 *tlv_len = len; in wpa_ft_rrb_get_tlv() 197 size_t tlv_len = 0; in wpa_ft_tlv_len() local 204 tlv_len += sizeof(struct ft_rrb_tlv); in wpa_ft_tlv_len() 205 tlv_len += tlvs[i].len; in wpa_ft_tlv_len() 208 return tlv_len; in wpa_ft_tlv_len() 216 size_t tlv_len; in wpa_ft_tlv_lin() local 223 tlv_len = 0; in wpa_ft_tlv_lin() 226 if (tlv_len + sizeof(*hdr) > (size_t) (endpos - start)) in wpa_ft_tlv_lin() 227 return tlv_len; in wpa_ft_tlv_lin() [all …]
|