diff options
author | Gerald Combs <gerald@wireshark.org> | 2022-03-19 19:31:03 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2022-03-20 17:04:58 +0000 |
commit | c347b057a70decdf4eaee0196886473a39bf24f9 (patch) | |
tree | 158f3a88c898b0a3d541cccb7c22974c4bd0f341 /dumpcap.c | |
parent | 6a97b2095c4c2a31b2099037a43814990c611648 (diff) |
dumpcap: Count more block types as packets.
The Sysdig Event dissector handles BLOCK_TYPE_SYSDIG_EVENT_V2 and
BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE blocks. Add them to dumpcap's packet
count so that we don't get a "No packets captured." error.
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4560,8 +4560,8 @@ capture_loop_write_pcapng_cb(capture_src *pcap_src, const pcapng_block_header_t global_ld.go = FALSE; global_ld.err = err; pcap_src->dropped++; - } else if (bh->block_type == BLOCK_TYPE_EPB || bh->block_type == BLOCK_TYPE_SPB || bh->block_type == BLOCK_TYPE_SYSTEMD_JOURNAL_EXPORT) { - /* count packet only if we actually have an EPB or SPB */ + } else if (bh->block_type == BLOCK_TYPE_EPB || bh->block_type == BLOCK_TYPE_SPB || bh->block_type == BLOCK_TYPE_SYSTEMD_JOURNAL_EXPORT || bh->block_type == BLOCK_TYPE_SYSDIG_EVENT || bh->block_type == BLOCK_TYPE_SYSDIG_EVENT_V2 || bh->block_type == BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE) { + /* Count packets for block types that should be dissected, i.e. ones that show up in the packet list. */ #if defined(DEBUG_DUMPCAP) || defined(DEBUG_CHILD_DUMPCAP) ws_info("Wrote a pcapng block type %u of length %d captured on interface %u.", bh->block_type, bh->block_total_length, pcap_src->interface_id); |