diff options
author | Masaru Tsuchiyama <m.tmatma@gmail.com> | 2020-08-09 12:12:24 +0900 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2020-10-30 00:25:22 +0000 |
commit | c14ea41233fa92a1cb97ef29d1f9ded6587e45a5 (patch) | |
tree | b5e1c5169190bddbff0af9c9bce120d0e14e442f /dumpcap.c | |
parent | 9d6ebdc8a5bf56bf3438489474674b8541a22876 (diff) |
add support for compression of capture file
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |