From 9bcac48403de9aff6435d0f48028ae1f72f64528 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 16 Mar 2016 09:02:52 -0400 Subject: Manually add protocol dependencies derived from find_dissector. Started by grepping call_dissector_with_data, call_dissector_only and call_dissector and traced the handles passed into them to a find_dissector within the dissector. Then replaced find_dissector with find_dissector_add_dependency and added the protocol id from the dissector. "data" dissector was not considered to be a dependency. Change-Id: I15d0d77301306587ef8e7af5876e74231816890d Reviewed-on: https://code.wireshark.org/review/14509 Petri-Dish: Michael Mann Reviewed-by: Michael Mann --- epan/dissectors/packet-mbim.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'epan/dissectors/packet-mbim.c') diff --git a/epan/dissectors/packet-mbim.c b/epan/dissectors/packet-mbim.c index 35d19592bf..09a52c8a7d 100644 --- a/epan/dissectors/packet-mbim.c +++ b/epan/dissectors/packet-mbim.c @@ -8022,13 +8022,13 @@ proto_reg_handoff_mbim(void) if (!initialized) { dissector_handle_t mbim_decode_as_handle = create_dissector_handle(dissect_mbim_decode_as, proto_mbim); - bertlv_handle = find_dissector("gsm_sim.bertlv"); - etsi_cat_handle = find_dissector("etsi_cat"); - gsm_sms_handle = find_dissector("gsm_sms"); - cdma_sms_handle = find_dissector("ansi_637_trans"); - eth_handle = find_dissector("eth_withoutfcs"); - eth_fcs_handle = find_dissector("eth_withfcs"); - ip_handle = find_dissector("ip"); + bertlv_handle = find_dissector_add_dependency("gsm_sim.bertlv", proto_mbim); + etsi_cat_handle = find_dissector_add_dependency("etsi_cat", proto_mbim); + gsm_sms_handle = find_dissector_add_dependency("gsm_sms", proto_mbim); + cdma_sms_handle = find_dissector_add_dependency("ansi_637_trans", proto_mbim); + eth_handle = find_dissector_add_dependency("eth_withoutfcs", proto_mbim); + eth_fcs_handle = find_dissector_add_dependency("eth_withfcs", proto_mbim); + ip_handle = find_dissector_add_dependency("ip", proto_mbim); data_handle = find_dissector("data"); heur_dissector_add("usb.bulk", dissect_mbim_bulk_heur, "MBIM USB bulk endpoint", "mbim_usb_bulk", proto_mbim, HEURISTIC_ENABLE); dissector_add_for_decode_as("usb.device", mbim_decode_as_handle); -- cgit v1.2.3