Should be a "new-style" dissector because its caller expects it to be now, but

need to create the dissector handle using new_create_dissector_handle().
(Similar to SVN #34707).

svn path=/trunk/; revision=34708
This commit is contained in:
Chris Maynard 2010-10-30 04:29:19 +00:00
parent 19ac4ab745
commit fd2c5fbccc
1 changed files with 3 additions and 2 deletions

View File

@ -110,7 +110,7 @@ static const true_false_string ipmi_payload_enc_val = {
"Payload is unencrypted"
};
static void
static int
dissect_ipmi_session(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_tree *sess_tree = NULL, *s_tree;
@ -261,6 +261,7 @@ dissect_ipmi_session(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tvb, offset, tvb_length(tvb) - offset, TRUE);
}
}
return tvb_length(tvb);
}
void
@ -319,7 +320,7 @@ proto_reg_handoff_ipmi_session(void)
{
dissector_handle_t ipmi_session_handle;
ipmi_session_handle = create_dissector_handle(dissect_ipmi_session, proto_ipmi_session);
ipmi_session_handle = new_create_dissector_handle(dissect_ipmi_session, proto_ipmi_session);
dissector_add("rmcp.class", RMCP_CLASS_IPMI, ipmi_session_handle);
data_handle = find_dissector("data");