| /freebsd/contrib/libpcap/ |
| H A D | sf-pcapng.c | 54 bpf_u_int32 total_length; member 61 bpf_u_int32 total_length; member 296 bhdr.total_length = SWAPLONG(bhdr.total_length); in read_block() 303 if (bhdr.total_length < sizeof(struct block_header) + in read_block() 307 bhdr.total_length, in read_block() 315 if ((bhdr.total_length % 4) != 0) { in read_block() 321 bhdr.total_length); in read_block() 328 if (p->bufsize < bhdr.total_length) { in read_block() 335 if (bhdr.total_length > ps->max_blocksize) { in read_block() 336 snprintf(errbuf, PCAP_ERRBUF_SIZE, "pcapng block size %u > maximum %u", bhdr.total_length, in read_block() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunication.cpp | 630 size_t total_length = 0; in CheckForPacket() local 646 content_length = total_length = 1; // The command is one byte long... in CheckForPacket() 666 total_length = in CheckForPacket() 707 } else if (total_length > 0) { in CheckForPacket() 711 assert(total_length <= m_bytes.size()); in CheckForPacket() 712 assert(content_length <= total_length); in CheckForPacket() 727 if (m_bytes[0] == '$' && total_length > 4) { in CheckForPacket() 728 for (size_t i = 0; !binary && i < total_length; ++i) { in CheckForPacket() 740 (uint64_t)original_packet_size, (uint64_t)total_length, in CheckForPacket() 744 (uint64_t)total_length, m_bytes[0]); in CheckForPacket() [all …]
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | ndef.c | 29 u32 total_length; member 81 record->total_length = pos - data; in ndef_parse_record() 82 if (record->total_length > size || in ndef_parse_record() 83 record->total_length < record->payload_length) in ndef_parse_record() 104 data += record.total_length; in ndef_parse_records() 105 len -= record.total_length; in ndef_parse_records()
|
| /freebsd/crypto/openssl/providers/implementations/rands/seeding/ |
| H A D | rand_vms.c | 365 size_t total_length = 0; in data_collect_method() local 383 total_length = total_elems * sizeof(data.buffer[0]); in data_collect_method() 458 if (!ossl_assert(total_length >= bytes_needed)) { in data_collect_method() 461 bytes_needed, total_length); in data_collect_method() 468 if (total_length > bytes_remaining) in data_collect_method() 469 total_length = bytes_remaining; in data_collect_method() 472 ossl_rand_pool_add(pool, (unsigned char *)data.buffer, total_length, in data_collect_method() 473 8 * total_length / ENTROPY_FACTOR); in data_collect_method()
|
| /freebsd/contrib/libcbor/src/ |
| H A D | cbor.c | 312 size_t total_length = 0; in cbor_copy_definite() local 314 total_length += in cbor_copy_definite() 318 unsigned char* combined_data = _cbor_malloc(total_length); in cbor_copy_definite() 332 cbor_bytestring_set_handle(res, combined_data, total_length); in cbor_copy_definite() 339 size_t total_length = 0; in cbor_copy_definite() local 341 total_length += in cbor_copy_definite() 345 unsigned char* combined_data = _cbor_malloc(total_length); in cbor_copy_definite() 359 cbor_string_set_handle(res, combined_data, total_length); in cbor_copy_definite()
|
| /freebsd/sys/dev/sfxge/common/ |
| H A D | ef10_nvram.c | 635 header->total_length = __CPU_TO_LE_32(new_len); in tlv_update_partition_len_and_cks() 667 size_t total_length; in ef10_nvram_buffer_validate() local 692 total_length = __LE_TO_CPU_32(header->total_length); in ef10_nvram_buffer_validate() 693 if (total_length > partn_size) { in ef10_nvram_buffer_validate() 728 for (pos = 0; (size_t)pos < total_length; pos += sizeof (uint32_t)) { in ef10_nvram_buffer_validate() 808 header.total_length = 0; /* This will be fixed below. */ in ef10_nvram_buffer_create() 1247 size_t total_length; in ef10_nvram_read_tlv_segment() local 1279 total_length = __LE_TO_CPU_32(header->total_length); in ef10_nvram_read_tlv_segment() 1280 if (total_length > max_seg_size) { in ef10_nvram_read_tlv_segment() 1286 if (total_length > EF10_NVRAM_CHUNK) { in ef10_nvram_read_tlv_segment() [all …]
|
| H A D | ef10_tlv_layout.h | 126 uint32_t total_length; member
|
| /freebsd/sys/dev/qlxgb/ |
| H A D | qla_hw.c | 932 uint32_t total_length = 0, bytes, tx_cmd_count = 0; in qla_hw_send() local 945 total_length = mp->m_pkthdr.len; in qla_hw_send() 946 if (total_length > QLA_MAX_TSO_FRAME_SIZE) { in qla_hw_send() 948 __func__, total_length); in qla_hw_send() 1023 tx_cmd->data_len_lo = (uint8_t)(total_length & 0xFF); in qla_hw_send() 1024 tx_cmd->data_len_hi = qla_host_to_le16(((uint16_t)(total_length >> 8))); in qla_hw_send()
|
| /freebsd/sys/dev/qlxge/ |
| H A D | qls_hw.c | 671 uint32_t total_length = 0; in qls_hw_send() local 678 total_length = mp->m_pkthdr.len; in qls_hw_send() 680 if (total_length > QLA_MAX_TSO_FRAME_SIZE) { in qls_hw_send() 682 __func__, total_length); in qls_hw_send() 721 tx_mac->frame_length = total_length; in qls_hw_send() 726 QL_DPRINT2((dev, "%s: 1 [%d, %d]\n", __func__, total_length, in qls_hw_send() 737 QL_DPRINT2((dev, "%s: 2 [%d, %d]\n", __func__, total_length, in qls_hw_send()
|
| /freebsd/sys/dev/ice/ |
| H A D | ice_protocol_type.h | 223 __be16 total_length; member
|
| /freebsd/sys/dev/gve/ |
| H A D | gve_adminq.h | 108 __be16 total_length; member
|
| H A D | gve_adminq.c | 190 char *desc_end = (char *)descriptor + be16toh(descriptor->total_length); in gve_process_device_options()
|
| /freebsd/contrib/tcpdump/ |
| H A D | print-bgp.c | 715 u_int total_length, offset; in bgp_vpn_sg_print() local 717 total_length = 0; in bgp_vpn_sg_print() 725 total_length += (addr_length >> 3) + 1; in bgp_vpn_sg_print() 739 total_length += (addr_length >> 3) + 1; in bgp_vpn_sg_print() 748 return (total_length); in bgp_vpn_sg_print()
|
| H A D | print-isoclns.c | 816 nd_uint16_t total_length; member 951 GET_BE_U_2(clnp_segment_header->total_length)); in clnp_print()
|
| /freebsd/sys/dev/qlxgbe/ |
| H A D | ql_hw.c | 2481 uint32_t total_length = 0, bytes, tx_cmd_count = 0, txr_next; in ql_hw_send() local 2497 total_length = mp->m_pkthdr.len; in ql_hw_send() 2498 if (total_length > QLA_MAX_TSO_FRAME_SIZE) { in ql_hw_send() 2500 __func__, total_length); in ql_hw_send() 2609 tx_cmd->data_len_lo = (uint8_t)(total_length & 0xFF); in ql_hw_send() 2610 tx_cmd->data_len_hi = qla_host_to_le16(((uint16_t)(total_length >> 8))); in ql_hw_send()
|
| /freebsd/sys/dev/smartpqi/ |
| H A D | smartpqi_discovery.c | 77 if (features->aio_subpage.header.total_length >= in pqisrc_QuerySenseFeatures() 80 features->aio_subpage.header.total_length); in pqisrc_QuerySenseFeatures()
|
| H A D | smartpqi_structures.h | 1170 uint16_t total_length; /** Total length of the page. member
|
| /freebsd/sys/dev/qlnx/qlnxe/ |
| H A D | ecore_sriov.c | 1375 u16 i = 1, total_length = 0; in ecore_dp_tlv_list() local 1380 tlv = (struct channel_tlv *)((u8 *)tlvs_list + total_length); in ecore_dp_tlv_list() 1402 total_length += tlv->length; in ecore_dp_tlv_list() 1404 if (total_length >= sizeof(struct tlv_buffer_size)) { in ecore_dp_tlv_list()
|
| /freebsd/sys/dev/oce/ |
| H A D | oce_hw.h | 2416 uint32_t total_length:16; member 2442 uint32_t total_length:16;
|
| H A D | oce_if.c | 1132 nichdr->u0.s.total_length = m->m_pkthdr.len; in oce_tx()
|