From cdeae7e72b749cdd68207d6e97dafb67783e2de4 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 5 Jul 2015 17:31:14 -0400 Subject: Add a "heuristic dissectors" tab to the Enable Protocols dialog. This allows for a global place to enable/disable all heuristic dissectors. This removes the need for individual dissector preferences, but those will be removed at a later date. The more important part is the epan code to save/restore the enabled state of the heuristic dissector. The GTK dialog was more for quickly testing the feature (there was already some GTK code in place that started the heuristic dialog tab) Change-Id: Ie10687505c27a4456c49d5c4c69a5fc5f6394275 Ping-Bug:11152 Reviewed-on: https://code.wireshark.org/review/9508 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- tfshark.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tfshark.c') diff --git a/tfshark.c b/tfshark.c index 05f1603e2a..47053cac99 100644 --- a/tfshark.c +++ b/tfshark.c @@ -1070,6 +1070,8 @@ DIAG_ON(cast-qual) /* Read the disabled protocols file. */ read_disabled_protos_list(&gdp_path, &gdp_open_errno, &gdp_read_errno, &dp_path, &dp_open_errno, &dp_read_errno); + read_disabled_heur_dissector_list(&gdp_path, &gdp_open_errno, &gdp_read_errno, + &dp_path, &dp_open_errno, &dp_read_errno); if (gdp_path != NULL) { if (gdp_open_errno != 0) { cmdarg_err("Could not open global disabled protocols file\n\"%s\": %s.", @@ -1428,6 +1430,7 @@ DIAG_ON(cast-qual) /* disabled protocols as per configuration file */ if (gdp_path == NULL && dp_path == NULL) { set_disabled_protos_list(); + set_disabled_heur_dissector_list(); } /* Build the column format array */ -- cgit v1.2.3