diff options
Diffstat (limited to 'ui/dissect_opts.h')
-rw-r--r-- | ui/dissect_opts.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/ui/dissect_opts.h b/ui/dissect_opts.h index c795c53b9e..3b98e1d210 100644 --- a/ui/dissect_opts.h +++ b/ui/dissect_opts.h @@ -1,4 +1,5 @@ -/* dissect_opts.h +/** @file + * * Dissection options (parameters that affect dissection) * * Wireshark - Network traffic analyzer @@ -28,10 +29,12 @@ extern "C" { * options; we should probably pick appropriate option names for them. */ -#define LONGOPT_DISABLE_PROTOCOL LONGOPT_BASE_DISSECTOR+1 -#define LONGOPT_ENABLE_HEURISTIC LONGOPT_BASE_DISSECTOR+2 -#define LONGOPT_DISABLE_HEURISTIC LONGOPT_BASE_DISSECTOR+3 -#define LONGOPT_ENABLE_PROTOCOL LONGOPT_BASE_DISSECTOR+4 +#define LONGOPT_DISABLE_PROTOCOL LONGOPT_BASE_DISSECTOR+1 +#define LONGOPT_ENABLE_HEURISTIC LONGOPT_BASE_DISSECTOR+2 +#define LONGOPT_DISABLE_HEURISTIC LONGOPT_BASE_DISSECTOR+3 +#define LONGOPT_ENABLE_PROTOCOL LONGOPT_BASE_DISSECTOR+4 +#define LONGOPT_ONLY_PROTOCOLS LONGOPT_BASE_DISSECTOR+5 +#define LONGOPT_DISABLE_ALL_PROTOCOLS LONGOPT_BASE_DISSECTOR+6 /* * Options for dissecting common to all dissecting programs. @@ -41,13 +44,18 @@ extern "C" { {"enable-heuristic", ws_required_argument, NULL, LONGOPT_ENABLE_HEURISTIC }, \ {"disable-heuristic", ws_required_argument, NULL, LONGOPT_DISABLE_HEURISTIC }, \ {"enable-protocol", ws_required_argument, NULL, LONGOPT_ENABLE_PROTOCOL }, \ + {"only-protocols", ws_required_argument, NULL, LONGOPT_ONLY_PROTOCOLS }, \ + {"disable-all-protocols", ws_no_argument, NULL, LONGOPT_DISABLE_ALL_PROTOCOLS }, \ + {"read-filter", ws_required_argument, NULL, 'R' }, \ + {"display-filter", ws_required_argument, NULL, 'Y' }, \ #define OPTSTRING_DISSECT_COMMON \ - "d:K:nN:t:u:" + "d:K:nN:R:t:u:Y:" /** Capture options coming from user interface */ typedef struct dissect_options_tag { ts_type time_format; + ts_precision time_precision; GSList *enable_protocol_slist; //enable protocols that are disabled by default GSList *disable_protocol_slist; GSList *enable_heur_slist; @@ -56,10 +64,6 @@ typedef struct dissect_options_tag { extern dissect_options global_dissect_options; -/* initialize the dissect_options with some reasonable values */ -extern void -dissect_opts_init(void); - /* * Handle a command line option. * Returns TRUE if the option is valid, FALSE if not; an error message |