aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorJim Young <jyoung@gsu.edu>2015-07-14 00:28:49 -0400
committerMichael Mann <mmann78@netscape.net>2015-07-17 11:27:52 +0000
commitad82dfd5547e460359eb3597ddb6760a29c40439 (patch)
tree7e13c660c502985fef6eb075e5efe09c5e020d9a /capture_opts.h
parent9d24a26c9b8c78260fca9c4f6ecf480e12010229 (diff)
Add new long options to GUIs to allow arbitrary protocols and heuristics to be disabled via command-line
Future: Allow multiple protocols to be disabled in one option statement (perhaps using a comma or colon delmited set of names in <proto_name>) instead of having to specify --disable-protocol <proto_name> multiple times. Change-Id: I9b8f960acf75298ebb098d9b667fca49dca52306 Reviewed-on: https://code.wireshark.org/review/9631 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 4ace0bf974..4d99cc759c 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -63,7 +63,10 @@ extern "C" {
* Non-capture long-only options should start here, to avoid collision
* with capture options.
*/
-#define MIN_NON_CAPTURE_LONGOPT 129
+#define MIN_NON_CAPTURE_LONGOPT 129
+#define LONGOPT_DISABLE_PROTOCOL 130
+#define LONGOPT_ENABLE_HEURISTIC 131
+#define LONGOPT_DISABLE_HEURISTIC 132
/*
* Options for capturing common to all capturing programs.
@@ -102,7 +105,10 @@ extern "C" {
{(char *)"list-data-link-types", no_argument, NULL, 'L'}, \
{(char *)"no-promiscuous-mode", no_argument, NULL, 'p'}, \
{(char *)"snapshot-length", required_argument, NULL, 's'}, \
- {(char *)"linktype", required_argument, NULL, 'y'},
+ {(char *)"linktype", required_argument, NULL, 'y'}, \
+ {(char *)"disable-protocol", required_argument, NULL, LONGOPT_DISABLE_PROTOCOL }, \
+ {(char *)"enable-heuristic", required_argument, NULL, LONGOPT_ENABLE_HEURISTIC }, \
+ {(char *)"disable-heuristic", required_argument, NULL, LONGOPT_DISABLE_HEURISTIC },
#define OPTSTRING_CAPTURE_COMMON \
"a:" OPTSTRING_A "b:" OPTSTRING_B "c:Df:i:" OPTSTRING_I "Lps:y:"