aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorDavid Perry <boolean263@protonmail.com>2022-02-09 14:32:28 +0000
committerA Wireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com>2022-02-09 14:32:28 +0000
commit1e0d117eb7ab1ce7f4ff8a4fd6dc2529634d7baa (patch)
treee7670b02e6c4d49e4f321864e730e0e48433b151 /capture_opts.h
parentf72787e86ff78790559fd5550e98865e225bfb68 (diff)
Specify directory for temporary captures
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h
index dd5850d2c7..ab30e497bf 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -47,6 +47,7 @@ extern "C" {
#define LONGOPT_LIST_TSTAMP_TYPES LONGOPT_BASE_CAPTURE+1
#define LONGOPT_SET_TSTAMP_TYPE LONGOPT_BASE_CAPTURE+2
#define LONGOPT_COMPRESS_TYPE LONGOPT_BASE_CAPTURE+3
+#define LONGOPT_CAPTURE_TMPDIR LONGOPT_BASE_CAPTURE+4
/*
* Options for capturing common to all capturing programs.
@@ -87,7 +88,8 @@ extern "C" {
{"linktype", ws_required_argument, NULL, 'y'}, \
{"list-time-stamp-types", ws_no_argument, NULL, LONGOPT_LIST_TSTAMP_TYPES}, \
{"time-stamp-type", ws_required_argument, NULL, LONGOPT_SET_TSTAMP_TYPE}, \
- {"compress-type", ws_required_argument, NULL, LONGOPT_COMPRESS_TYPE},
+ {"compress-type", ws_required_argument, NULL, LONGOPT_COMPRESS_TYPE}, \
+ {"temp-dir", ws_required_argument, NULL, LONGOPT_CAPTURE_TMPDIR},
#define OPTSTRING_CAPTURE_COMMON \
@@ -315,6 +317,7 @@ typedef struct capture_options_tag {
gboolean print_file_names; /**< TRUE if printing names of completed
files as we close them */
gchar *print_name_to; /**< output file name */
+ gchar *temp_dir; /**< temporary directory path */
/* internally used (don't touch from outside) */
gboolean output_to_pipe; /**< save_file is a pipe (named or stdout) */