aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-atm.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-03-16 09:02:52 -0400
committerMichael Mann <mmann78@netscape.net>2016-03-20 12:48:48 +0000
commit9bcac48403de9aff6435d0f48028ae1f72f64528 (patch)
tree16989d2207299572c970a79b6d4c4037fa975c55 /epan/dissectors/packet-atm.c
parent6da50e2fde7b678cfbee922e3b12d588d75b6eef (diff)
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 <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-atm.c')
-rw-r--r--epan/dissectors/packet-atm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-atm.c b/epan/dissectors/packet-atm.c
index bbf65e7076..2a23ffcb2e 100644
--- a/epan/dissectors/packet-atm.c
+++ b/epan/dissectors/packet-atm.c
@@ -2009,14 +2009,14 @@ proto_reg_handoff_atm(void)
* Get handles for the Ethernet, Token Ring, Frame Relay, LLC,
* SSCOP, LANE, and ILMI dissectors.
*/
- eth_withoutfcs_handle = find_dissector("eth_withoutfcs");
- tr_handle = find_dissector("tr");
- fr_handle = find_dissector("fr");
- llc_handle = find_dissector("llc");
- sscop_handle = find_dissector("sscop");
- ppp_handle = find_dissector("ppp");
- eth_maybefcs_handle = find_dissector("eth_maybefcs");
- ip_handle = find_dissector("ip");
+ eth_withoutfcs_handle = find_dissector_add_dependency("eth_withoutfcs", proto_atm_lane);
+ tr_handle = find_dissector_add_dependency("tr", proto_atm_lane);
+ fr_handle = find_dissector_add_dependency("fr", proto_atm);
+ llc_handle = find_dissector_add_dependency("llc", proto_atm);
+ sscop_handle = find_dissector_add_dependency("sscop", proto_atm);
+ ppp_handle = find_dissector_add_dependency("ppp", proto_atm);
+ eth_maybefcs_handle = find_dissector_add_dependency("eth_maybefcs", proto_atm);
+ ip_handle = find_dissector_add_dependency("ip", proto_atm);
data_handle = find_dissector("data");
dissector_add_uint("wtap_encap", WTAP_ENCAP_ATM_PDUS, atm_handle);