diff options
author | David Perry <boolean263@protonmail.com> | 2021-06-16 15:23:40 -0400 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-07-14 04:34:52 +0000 |
commit | 67b54e8b66add38e30f057d5b9421c521d95d4ca (patch) | |
tree | 04106c7c92104c5f6866e923535457b14479399b /capture_opts.h | |
parent | ff60fcf92dfc33f001e990268d060af4e97bfb7a (diff) |
tshark: allow --capture-comment when reading a file
Allows adding one or more capture comments to a new pcapng file when
tshark is reading from a file. Currently, tshark only allows setting one
capture comment, and that only when doing a live capture.
The use case for this feature is given in bug #15005.
I decided to allow multiple capture comments to match the same ability
in `editcap`.
To allow this change, I changed the function signature of
`process_cap_file()` so it takes a `capture_options` struct instead of
individual parameters that affect the capture.
Diffstat (limited to 'capture_opts.h')
-rw-r--r-- | capture_opts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h index 6ce656a389..cb1aa499f9 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -313,7 +313,7 @@ typedef struct capture_options_tag { is specified */ gdouble autostop_duration; /**< Maximum capture duration */ - gchar *capture_comment; /** capture comment to write to the + GPtrArray *capture_comment; /** capture comment to write to the output file */ gboolean print_file_names; /**< TRUE if printing names of completed files as we close them */ |