Home
last modified time | relevance | path

Searched refs:tlv_len (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/tcpdump/
H A Dprint-lldp.c655 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument
663 if (tlv_len < 4) { in lldp_private_8021_print()
674 if (tlv_len < 6) { in lldp_private_8021_print()
681 if (tlv_len < 7) { in lldp_private_8021_print()
690 if (tlv_len < 6) { in lldp_private_8021_print()
694 if (tlv_len < 7) { in lldp_private_8021_print()
698 if (tlv_len < 7+sublen) { in lldp_private_8021_print()
705 if (tlv_len < 5) { in lldp_private_8021_print()
709 if (tlv_len < 5+sublen) { in lldp_private_8021_print()
717 if (tlv_len < 9) { in lldp_private_8021_print()
[all …]
H A Dprint-vtp.c121 u_int type, len, name_len, tlv_len, tlv_value, mgmtd_len; in vtp_print() local
284 tlv_len = GET_U_1(tptr + 1); in vtp_print()
290 if (len < tlv_len * 2 + 2) { in vtp_print()
294 ND_TCHECK_LEN(tptr, tlv_len * 2 + 2); in vtp_print()
300 if (tlv_len != 1) { in vtp_print()
301 ND_PRINT(" [TLV length %u != 1]", tlv_len); in vtp_print()
346 print_unknown_data(ndo, tptr, "\n\t\t ", 2 + tlv_len*2); in vtp_print()
350 len -= 2 + tlv_len*2; in vtp_print()
351 tptr += 2 + tlv_len*2; in vtp_print()
H A Dprint-nsh.c194 uint8_t tlv_type, tlv_len, tlv_len_padded; in nsh_print() local
200 tlv_len = GET_U_1(bp) & 0x7f; in nsh_print()
202 tlv_len_padded = roundup2(tlv_len, NSH_HDR_WORD_SIZE); in nsh_print()
205 tlv_class, tlv_type, tlv_len); in nsh_print()
214 if (tlv_len) { in nsh_print()
219 for (vn = 0; vn < tlv_len; vn++) { in nsh_print()
225 ND_TCHECK_LEN(bp, tlv_len_padded - tlv_len); in nsh_print()
226 bp += tlv_len_padded - tlv_len; in nsh_print()
H A Dprint-slow.c347 u_int tlv_type, tlv_len, tlv_tlen; in slow_marker_lacp_print() local
363 tlv_len = GET_U_1(tlv_header->length); in slow_marker_lacp_print()
370 tlv_len); in slow_marker_lacp_print()
381 if (tlv_len < sizeof(struct tlv_header_t)) { in slow_marker_lacp_print()
388 if (tlen < tlv_len) in slow_marker_lacp_print()
391 ND_TCHECK_LEN(tptr, tlv_len); in slow_marker_lacp_print()
394 tlv_tlen=tlv_len-sizeof(struct tlv_header_t); in slow_marker_lacp_print()
465 tlv_len-sizeof(struct tlv_header_t)); in slow_marker_lacp_print()
468 tptr+=tlv_len; in slow_marker_lacp_print()
469 tlen-=tlv_len; in slow_marker_lacp_print()
H A Dprint-ldp.c249 u_short tlv_type,tlv_len,tlv_tlen,af,ft_flags; in ldp_tlv_print() local
257 tlv_len=GET_BE_U_2(ldp_tlv_header->length); in ldp_tlv_print()
258 if (tlv_len + 4U > msg_tlen) { in ldp_tlv_print()
262 tlv_tlen=tlv_len; in ldp_tlv_print()
271 tlv_len, in ldp_tlv_print()
419 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
540 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
546 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
H A Dprint-juniper.c1218 const u_char *p, u_int tlv_type, u_int tlv_len) in juniper_read_tlv_value() argument
1224 switch (tlv_len) { in juniper_read_tlv_value()
1243 switch (tlv_len) { in juniper_read_tlv_value()
1270 uint8_t tlv_type,tlv_len; in juniper_parse_header() local
1325 tlv_len = GET_U_1(tptr); in juniper_parse_header()
1330 if (tlv_type == 0 || tlv_len == 0) in juniper_parse_header()
1333 tlv_len + JUNIPER_EXT_TLV_OVERHEAD); in juniper_parse_header()
1339 tlv_len); in juniper_parse_header()
1341 tlv_value = juniper_read_tlv_value(ndo, tptr, tlv_type, tlv_len); in juniper_parse_header()
1375 tptr+=tlv_len; in juniper_parse_header()
[all …]
H A Dprint-isoclns.c2484 …uint8_t pdu_type, pdu_max_area, max_area, pdu_id_length, id_length, tlv_type, tlv_len, tlen, alen,… in isis_print() local
2854 tlv_len = GET_U_1(pptr + 1); in isis_print()
2857 tlen = tlv_len; /* copy temporary len & pointer to packet data */ in isis_print()
2866 tlv_len); in isis_print()
2868 if (packet_len < tlv_len) in isis_print()
3008 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
3500 if (!print_unknown_data(ndo, pptr, "\n\t\t", tlv_len)) in isis_print()
3508 if (!print_unknown_data(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
3512 pptr += tlv_len; in isis_print()
3513 packet_len -= tlv_len; in isis_print()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dpnvm.c49 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section()
54 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
57 if (len < tlv_len) { in iwl_pnvm_handle_section()
59 len, tlv_len); in iwl_pnvm_handle_section()
67 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
70 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section()
82 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section()
85 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section()
105 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section()
109 tlv_len); in iwl_pnvm_handle_section()
47 u32 tlv_len, tlv_type; iwl_pnvm_handle_section() local
175 u32 tlv_len, tlv_type; iwl_pnvm_parse() local
[all...]
H A Duefi.c116 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_reduce_power_section()
121 if (tlv_len < sizeof(*desc)) { in iwl_uefi_reduce_power_section()
122 IWL_DEBUG_FW(trans, "TLV len (%d) is too small\n", tlv_len); in iwl_uefi_reduce_power_section()
126 data_len = tlv_len - sizeof(*desc); in iwl_uefi_reduce_power_section()
130 tlv_len, data_len); in iwl_uefi_reduce_power_section()
161 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section()
166 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section()
169 if (len < tlv_len) { in iwl_uefi_reduce_power_parse()
171 len, tlv_len); in iwl_uefi_reduce_power_parse()
179 if (iwl_uefi_handle_tlv_mem_desc(trans, data, tlv_len, in iwl_uefi_reduce_power_parse()
80 iwl_uefi_handle_tlv_mem_desc(struct iwl_trans * trans,const u8 * data,u32 tlv_len,struct iwl_pnvm_image * pnvm_data) iwl_uefi_handle_tlv_mem_desc() argument
125 u32 tlv_len, tlv_type; iwl_uefi_reduce_power_section() local
178 u32 tlv_len, tlv_type; iwl_uefi_reduce_power_parse() local
[all...]
H A Duefi.h210 u32 tlv_len, struct iwl_pnvm_image *pnvm_data);
253 u32 tlv_len, struct iwl_pnvm_image *pnvm_data)
77 iwl_uefi_handle_tlv_mem_desc(struct iwl_trans * trans,const u8 * data,u32 tlv_len,struct iwl_pnvm_image * pnvm_data) iwl_uefi_handle_tlv_mem_desc() argument
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-drv.c614 const void *tlv_data, u32 tlv_len) in iwl_drv_set_dump_exclude() argument
619 if (tlv_len < sizeof(*fw)) in iwl_drv_set_dump_exclude()
719 u32 tlv_len; in iwl_parse_tlv_firmware() local
766 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
770 if (len < tlv_len) { in iwl_parse_tlv_firmware()
772 len, tlv_len); in iwl_parse_tlv_firmware()
775 len -= ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
776 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
783 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware()
792 IWL_UCODE_SECTION_DATA, tlv_len); in iwl_parse_tlv_firmware()
[all …]
H A Diwl-dbg-tlv.c199 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region()
241 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region()
477 u32 tlv_len; in iwl_dbg_tlv_parse_bin()
483 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin()
485 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin()
487 len, tlv_len); in iwl_dbg_tlv_parse_bin()
490 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
491 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
188 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); iwl_dbg_tlv_alloc_region() local
474 u32 tlv_len; iwl_dbg_tlv_parse_bin() local
/freebsd/contrib/wpa/src/eap_common/
H A Deap_common.c215 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()
/freebsd/sys/dev/mlxfw/
H A Dmlxfw_mfa2_tlv_multi.c54 u16 tlv_len; in mlxfw_mfa2_tlv_next() local
57 tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv); in mlxfw_mfa2_tlv_next()
63 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
66 next = (const u8 *) tlv + tlv_len; in mlxfw_mfa2_tlv_next()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dspectral.c586 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
602 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, __le32_to_cpu(tlv->header)); in ath11k_spectral_process_fft()
604 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
605 bin_len = tlv_len - ab->hw_params.spectral.fft_hdr_len; in ath11k_spectral_process_fft()
714 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
753 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
756 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
757 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
759 i, tlv_len, data_len); in ath11k_spectral_process_data()
773 tlv_len = sizeof(*summary) - sizeof(*tlv) + in ath11k_spectral_process_data()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_peap.c715 int tlv_type, mandatory, tlv_len; in eap_peap_process_phase2_tlv() local
729 tlv_len = ((int) pos[2] << 8) | pos[3]; in eap_peap_process_phase2_tlv()
732 if ((size_t) tlv_len > left) { in eap_peap_process_phase2_tlv()
734 "(tlv_len=%d left=%lu)", tlv_len, in eap_peap_process_phase2_tlv()
742 result_tlv_len = tlv_len; in eap_peap_process_phase2_tlv()
746 crypto_tlv_len = tlv_len; in eap_peap_process_phase2_tlv()
760 pos += tlv_len; in eap_peap_process_phase2_tlv()
761 left -= tlv_len; in eap_peap_process_phase2_tlv()
835 int tlv_type, mandatory, tlv_len, vtlv_len; in eap_peap_process_phase2_soh() local
852 tlv_len = ((int) pos[2] << 8) | pos[3]; in eap_peap_process_phase2_soh()
[all …]
/freebsd/tools/tools/ath/athratestats/
H A Dmain.c244 if (av->tlv_len != sizeof(struct ath_rateioctl_rt)) { in rate_node_stats()
247 av->tlv_len, in rate_node_stats()
263 if (av->tlv_len != sizeof(struct sample_node)) { in rate_node_stats()
266 av->tlv_len, in rate_node_stats()
/freebsd/contrib/wpa/src/ap/
H A Dwpa_auth_ft.c143 u16 type, size_t *tlv_len, const u8 **tlv_data) in wpa_ft_rrb_get_tlv() argument
166 *tlv_len = len; in wpa_ft_rrb_get_tlv()
312 size_t tlv_len = 0; in wpa_ft_tlv_len() local
319 tlv_len += sizeof(struct ft_rrb_tlv); in wpa_ft_tlv_len()
320 tlv_len += tlvs[i].len; in wpa_ft_tlv_len()
323 return tlv_len; in wpa_ft_tlv_len()
331 size_t tlv_len; in wpa_ft_tlv_lin() local
338 tlv_len = 0; in wpa_ft_tlv_lin()
341 if (tlv_len + sizeof(*hdr) > (size_t) (endpos - start)) in wpa_ft_tlv_lin()
342 return tlv_len; in wpa_ft_tlv_lin()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_peap.c505 size_t left, tlv_len; in eap_tlv_process() local
520 tlv_len = WPA_GET_BE16(pos); in eap_tlv_process()
523 if (tlv_len > left) { in eap_tlv_process()
526 (unsigned long) tlv_len, in eap_tlv_process()
533 result_tlv_len = tlv_len; in eap_tlv_process()
537 crypto_tlv_len = tlv_len; in eap_tlv_process()
554 pos += tlv_len; in eap_tlv_process()
555 left -= tlv_len; in eap_tlv_process()
H A Deap_teap.c1588 size_t tlv_len, olen; in eap_teap_use_pac_opaque() local
1593 tlv_len = sizeof(*ehdr) + olen; in eap_teap_use_pac_opaque()
1594 tlv = os_malloc(tlv_len); in eap_teap_use_pac_opaque()
1604 tlv, tlv_len) < 0) { in eap_teap_use_pac_opaque()
1696 u16 tlv_type, tlv_len; in eap_teap_process_start() local
1705 tlv_len = WPA_GET_BE16(outer_pos); in eap_teap_process_start()
1712 tlv_type, tlv_len); in eap_teap_process_start()
1713 if (outer_end - outer_pos < tlv_len) { in eap_teap_process_start()
1721 outer_pos, tlv_len); in eap_teap_process_start()
1728 a_id_len = tlv_len; in eap_teap_process_start()
[all …]
H A Dtncc.c1172 u8 *tlv_len, *tlv_len2, *outer_len, *inner_len, *ssoh_len, *end; in tncc_build_soh() local
1188 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh()
1273 WPA_PUT_BE16(tlv_len, end - tlv_len - 2); in tncc_build_soh()
/freebsd/sys/dev/iwm/
H A Dif_iwm.c575 uint32_t tlv_len; in iwm_read_firmware() local
628 tlv_len = le32toh(tlv->length); in iwm_read_firmware()
632 if (len < tlv_len) { in iwm_read_firmware()
639 len -= roundup2(tlv_len, 4); in iwm_read_firmware()
640 data += sizeof(*tlv) + roundup2(tlv_len, 4); in iwm_read_firmware()
644 if (tlv_len != sizeof(uint32_t)) { in iwm_read_firmware()
647 __func__, tlv_len); in iwm_read_firmware()
664 if (tlv_len) { in iwm_read_firmware()
667 __func__, tlv_len); in iwm_read_firmware()
674 if (tlv_len < sizeof(uint32_t)) { in iwm_read_firmware()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dcoredump.h32 __le32 tlv_len; member
H A Dcoredump.c1559 dump_tlv->tlv_len = cpu_to_le32(sizeof(crash_data->registers)); in ath10k_coredump_build()
1568 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
1583 dump_tlv->tlv_len = cpu_to_le32(crash_data->ramdump_buf_len); in ath10k_coredump_build()
/freebsd/sys/dev/ice/
H A Dice_nvm.c762 u16 tlv_len; in ice_get_pfa_module_tlv()
772 status = ice_read_sr_word(hw, (u16)(next_tlv + 1), &tlv_len); in ice_get_pfa_module_tlv()
778 if (tlv_len) { in ice_get_pfa_module_tlv()
780 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv()
787 check_add_overflow(next_tlv, tlv_len, &next_tlv)) {
789 tlv_sub_module_type, tlv_len, pfa_ptr, pfa_len);
752 u16 tlv_len; ice_get_pfa_module_tlv() local

12