aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
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 /capture_opts.h
parent9d6ebdc8a5bf56bf3438489474674b8541a22876 (diff)
add support for compression of capture file
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 82029b8eea..948b343d1f 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -21,6 +21,7 @@
#include <sys/types.h> /* for gid_t */
#include <caputils/capture_ifinfo.h>
+#include "ringbuffer.h"
#ifdef _WIN32
#include <windows.h>
@@ -45,6 +46,7 @@ extern "C" {
#define LONGOPT_NUM_CAP_COMMENT LONGOPT_BASE_CAPTURE+1
#define LONGOPT_LIST_TSTAMP_TYPES LONGOPT_BASE_CAPTURE+2
#define LONGOPT_SET_TSTAMP_TYPE LONGOPT_BASE_CAPTURE+3
+#define LONGOPT_COMPRESS_TYPE LONGOPT_BASE_CAPTURE+4
/*
* Options for capturing common to all capturing programs.
@@ -85,7 +87,8 @@ extern "C" {
{"snapshot-length", required_argument, NULL, 's'}, \
{"linktype", required_argument, NULL, 'y'}, \
{"list-time-stamp-types", no_argument, NULL, LONGOPT_LIST_TSTAMP_TYPES}, \
- {"time-stamp-type", required_argument, NULL, LONGOPT_SET_TSTAMP_TYPE},
+ {"time-stamp-type", required_argument, NULL, LONGOPT_SET_TSTAMP_TYPE}, \
+ {"compress-type", required_argument, NULL, LONGOPT_COMPRESS_TYPE},
#define OPTSTRING_CAPTURE_COMMON \
@@ -317,6 +320,7 @@ typedef struct capture_options_tag {
/* internally used (don't touch from outside) */
gboolean output_to_pipe; /**< save_file is a pipe (named or stdout) */
gboolean capture_child; /**< hidden option: Wireshark child mode */
+ gchar *compress_type; /**< compress type */
} capture_options;
/* initialize the capture_options with some reasonable values */