diff options
author | Michael Mann <mmann78@netscape.net> | 2015-10-06 22:23:19 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-10-07 03:42:04 +0000 |
commit | 42f5d862b00a21d211abba4d66dc852deb7e5c38 (patch) | |
tree | b2ddd220153e0c6a26dbf816723ae57137e33fc4 /epan/packet.c | |
parent | cc1c23a980fe2519d846498f05a0fcf6437e5763 (diff) |
Remove heur_dissector_set_enabled.
With the adjustment to heur_dissector_add passing an enable/disable flag and "global" control of heuristic dissectors just like regular ones, this is no longer needed.
Change-Id: I2d433c7bff8353421eca31f8813992e38b716911
Reviewed-on: https://code.wireshark.org/review/10848
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/packet.c')
-rw-r--r-- | epan/packet.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/epan/packet.c b/epan/packet.c index 64c3e0d913..60e7dc73b3 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -2111,29 +2111,6 @@ heur_dissector_delete(const char *name, heur_dissector_t dissector, const int pr } } -void -heur_dissector_set_enabled(const char *name, heur_dissector_t dissector, const int proto, const gboolean enabled) { - heur_dissector_list_t sub_dissectors = find_heur_dissector_list(name); - GSList *found_entry; - heur_dtbl_entry_t hdtbl_entry; - - /* sanity check */ - g_assert(sub_dissectors != NULL); - - hdtbl_entry.dissector = dissector; - - hdtbl_entry.protocol = find_protocol_by_id(proto); - - found_entry = g_slist_find_custom(sub_dissectors->dissectors, - (gpointer) &hdtbl_entry, find_matching_heur_dissector); - - if (found_entry) { - heur_dtbl_entry_t *hdtbl_entry_p; - hdtbl_entry_p = (heur_dtbl_entry_t *)found_entry->data; - hdtbl_entry_p->enabled = enabled; - } -} - gboolean dissector_try_heuristic(heur_dissector_list_t sub_dissectors, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, heur_dtbl_entry_t **heur_dtbl_entry, void *data) |