Home
last modified time | relevance | path

Searched refs:tlv_len (Results 1 – 25 of 49) 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 …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dpnvm.c50 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
55 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
58 if (len < tlv_len) { in iwl_pnvm_handle_section()
60 len, tlv_len); in iwl_pnvm_handle_section()
68 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
71 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section()
83 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section()
86 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section()
106 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section()
110 tlv_len); in iwl_pnvm_handle_section()
[all …]
H A Duefi.c131 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc() argument
136 if (tlv_len < sizeof(*desc)) { in iwl_uefi_handle_tlv_mem_desc()
137 IWL_DEBUG_FW(trans, "TLV len (%d) is too small\n", tlv_len); in iwl_uefi_handle_tlv_mem_desc()
141 data_len = tlv_len - sizeof(*desc); in iwl_uefi_handle_tlv_mem_desc()
145 tlv_len, data_len); in iwl_uefi_handle_tlv_mem_desc()
176 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
181 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section()
184 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
186 len, tlv_len); in iwl_uefi_reduce_power_section()
194 if (iwl_uefi_handle_tlv_mem_desc(trans, data, tlv_len, in iwl_uefi_reduce_power_section()
[all …]
H A Duefi.h260 u32 tlv_len, struct iwl_pnvm_image *pnvm_data);
307 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc() argument
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-drv.c714 const void *tlv_data, u32 tlv_len) in iwl_drv_set_dump_exclude() argument
719 if (tlv_len < sizeof(*fw)) in iwl_drv_set_dump_exclude()
819 u32 tlv_len; in iwl_parse_tlv_firmware() local
866 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
870 if (len < tlv_len) { in iwl_parse_tlv_firmware()
872 len, tlv_len); in iwl_parse_tlv_firmware()
875 len -= ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
876 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
883 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware()
892 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() local
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() local
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()
/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.c578 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
594 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, __le32_to_cpu(tlv->header)); in ath11k_spectral_process_fft()
596 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
597 bin_len = tlv_len - ab->hw_params.spectral.fft_hdr_len; in ath11k_spectral_process_fft()
706 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
745 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
748 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
749 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
751 i, tlv_len, data_len); in ath11k_spectral_process_data()
765 tlv_len = sizeof(*summary) - sizeof(*tlv) + in ath11k_spectral_process_data()
[all …]
H A Dcoredump.h34 __le32 tlv_len; member
/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 …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dcoredump.h31 __le32 tlv_len; member
H A Ddp_htt.c155 u16 tlv_tag, tlv_len; in ath12k_dp_htt_tlv_iter() local
166 tlv_len = le32_get_bits(tlv->header, HTT_TLV_LEN); in ath12k_dp_htt_tlv_iter()
170 if (tlv_len > len) { in ath12k_dp_htt_tlv_iter()
172 tlv_tag, ptr - begin, len, tlv_len); in ath12k_dp_htt_tlv_iter()
175 ret = iter(ab, tlv_tag, tlv_len, ptr, data); in ath12k_dp_htt_tlv_iter()
179 ptr += tlv_len; in ath12k_dp_htt_tlv_iter()
180 len -= tlv_len; in ath12k_dp_htt_tlv_iter()
/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/dev/iwx/
H A Dif_iwx.c1376 size_t tlv_len; in iwx_read_firmware() local
1380 tlv_len = le32toh(tlv.length); in iwx_read_firmware()
1387 if (len < tlv_len) { in iwx_read_firmware()
1396 if (tlv_len < sizeof(uint32_t)) { in iwx_read_firmware()
1409 if (tlv_len) { in iwx_read_firmware()
1416 if (tlv_len < sizeof(uint32_t)) { in iwx_read_firmware()
1434 err = iwx_store_cscheme(sc, tlv_data, tlv_len); in iwx_read_firmware()
1440 if (tlv_len != sizeof(uint32_t)) { in iwx_read_firmware()
1453 IWX_UCODE_TYPE_REGULAR, tlv_data, tlv_len); in iwx_read_firmware()
1459 IWX_UCODE_TYPE_INIT, tlv_data, tlv_len); in iwx_read_firmware()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dcoredump.h37 __le32 tlv_len; member

12