aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-06-23 12:45:32 -0700
committerGuy Harris <guy@alum.mit.edu>2016-06-23 19:45:51 +0000
commita5e9e7e7aed75cfec58ff33fc488baf6236c92c6 (patch)
tree243b50849b0800c4ba5e055c1ddf4fc23f7611ad /epan/proto.h
parentdd5f3c96c300688cb996e52c163fb3f5a614706c (diff)
Fix "disable this protocol by default".
Allow a dissector to mark its protocol as "disabled by default", which means that the "enable all protocols" routine won't enable it. This is necessary in order to allow the disabling of protocols not to be unintentionally changed due to profile changes; see bug 9826. Change-Id: I3947f794c21350b70a8de06899cfc7715b77f90f Ping-Bug: 9826 Reviewed-on: https://code.wireshark.org/review/16109 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 56f78350c1..b48ecadeb7 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -2285,6 +2285,10 @@ WS_DLL_PUBLIC void proto_get_frame_protocols(const wmem_list_t *layers,
*/
WS_DLL_PUBLIC gboolean proto_is_frame_protocol(const wmem_list_t *layers, const char* proto_name);
+/** Mark protocol with the given item number as disabled by default.
+ @param proto_id protocol id (0-indexed) */
+WS_DLL_PUBLIC void proto_disable_by_default(const int proto_id);
+
/** Enable / Disable protocol of the given item number.
@param proto_id protocol id (0-indexed)
@param enabled enable / disable the protocol */