aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipmi-trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ipmi-trace.c')
-rw-r--r--epan/dissectors/packet-ipmi-trace.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/epan/dissectors/packet-ipmi-trace.c b/epan/dissectors/packet-ipmi-trace.c
index cbe96a70f1..e52179f747 100644
--- a/epan/dissectors/packet-ipmi-trace.c
+++ b/epan/dissectors/packet-ipmi-trace.c
@@ -92,7 +92,6 @@ void proto_reg_handoff_ipmi_trace(void);
static int proto_ipmi_trace = -1;
-static dissector_handle_t data_dissector_handle;
static dissector_table_t proto_dissector_table;
static gint ett_ipmi_trace = -1;
@@ -283,7 +282,7 @@ dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
if (tvb_captured_length(tvb) < 11) {
/* TODO: add expert info */
- call_dissector(data_dissector_handle, tvb, pinfo, tree);
+ call_data_dissector(tvb, pinfo, tree);
return tvb_captured_length(tvb);
}
@@ -412,14 +411,13 @@ dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
if (!dissector_try_uint_new(proto_dissector_table,
data_type, next_tvb, pinfo, tree, TRUE, &arg)) {
- call_dissector(data_dissector_handle, next_tvb,
- pinfo, tree);
+ call_data_dissector(next_tvb, pinfo, tree);
}
} else if (block_type == HPM2_CHN_STATE_NOTIFY
&& data_type == IPMI_PROTO_IPMB_1_0) {
dissect_ipmb_state_notify(next_tvb, tree);
} else {
- call_dissector(data_dissector_handle, next_tvb, pinfo, tree);
+ call_data_dissector(next_tvb, pinfo, tree);
}
return tvb_captured_length(tvb);
}
@@ -452,8 +450,6 @@ proto_reg_handoff_ipmi_trace(void)
ipmi_trace_handle = create_dissector_handle(dissect_ipmi_trace,
proto_ipmi_trace);
- data_dissector_handle = find_dissector("data");
-
dissector_add_uint("wtap_encap", WTAP_ENCAP_IPMI_TRACE, ipmi_trace_handle);
dissector_add_uint("ipmi.protocol", IPMI_PROTO_IPMB_1_0,