Dumpcap+Qt: Add support for `-a packets:NUM` and `-b packets:NUM`.
authorGerald Combs <gerald@wireshark.org>
Wed, 31 Oct 2018 09:03:04 +0000 (10:03 +0100)
committerAnders Broman <a.broman58@gmail.com>
Fri, 9 Nov 2018 05:55:11 +0000 (05:55 +0000)
commit11a9a501fb004bd3259f457714670ffb6d3d21e9
treecf1a39471dff0d4e9b8a8da493d243eb53588954
parent9b6b36beaeb2f58a209943d95c05486b72c6907f
Dumpcap+Qt: Add support for `-a packets:NUM` and `-b packets:NUM`.

Add the ability to rotate files after a specified number of packets (`-b
packets:NUM`). Move some condition checks to capture_loop_write_packet_cb.

Add `-a packets:NUM` in order to be consistent. It is functionally
equivalent to the `-c` flag.

Add a corresponding "packets" option to the Capture Interfaces dialog
Output tab.

Add initial tests for autostop and ringbuffer conditions.

Change-Id: I66eb968927ed287deb8edb96db96d7c73526c257
Reviewed-on: https://code.wireshark.org/review/30534
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
12 files changed:
capchild/capture_sync.c
capture_opts.c
capture_opts.h
doc/dumpcap.pod
doc/tshark.pod
doc/wireshark.pod.template
docbook/release-notes.asciidoc
dumpcap.c
test/suite_capture.py
test/util_dump_dhcp_pcap.py
ui/qt/capture_interfaces_dialog.cpp
ui/qt/capture_interfaces_dialog.ui