aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorMasaru Tsuchiyama <m.tmatma@gmail.com>2020-08-09 12:12:24 +0900
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2020-10-30 00:25:22 +0000
commitc14ea41233fa92a1cb97ef29d1f9ded6587e45a5 (patch)
treeb5e1c5169190bddbff0af9c9bce120d0e14e442f /dumpcap.c
parent9d6ebdc8a5bf56bf3438489474674b8541a22876 (diff)
add support for compression of capture file
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index b7675fd78b..0c35f508c5 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -3396,7 +3396,8 @@ capture_loop_open_output(capture_options *capture_opts, int *save_file_fd,
/* ringbuffer is enabled */
*save_file_fd = ringbuf_init(capfile_name,
(capture_opts->has_ring_num_files) ? capture_opts->ring_num_files : 0,
- capture_opts->group_read_access);
+ capture_opts->group_read_access,
+ capture_opts->compress_type);
/* capfile_name is unused as the ringbuffer provides its own filename. */
if (*save_file_fd != -1) {
@@ -4903,6 +4904,7 @@ main(int argc, char *argv[])
#ifdef HAVE_PCAP_CREATE
case 'I': /* Monitor mode */
#endif
+ case LONGOPT_COMPRESS_TYPE: /* compress type */
status = capture_opts_add_opt(&global_capture_opts, opt, optarg, &start_capture);
if (status != 0) {
exit_main(status);