/*************************/
/* Function declarations */
+void proto_register_msmms(void);
+void proto_reg_handoff_msmms_command(void);
+
static gint dissect_msmms_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
static gint dissect_msmms_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
offset += 4;
/* Protocol name. Must be "MMS"... */
- if (strncmp(tvb_get_ephemeral_string(tvb, offset, 3), "MMS", 3) != 0)
+ if (strncmp((char*)tvb_get_ephemeral_string(tvb, offset, 3), "MMS", 3) != 0)
{
return 0;
}
if (check_col(pinfo->cinfo, COL_INFO))
{
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
- format_text(transport_info, length_remaining - 20));
+ format_text((guchar*)transport_info, length_remaining - 20));
}
if (check_col(pinfo->cinfo, COL_INFO))
{
col_append_fstr(pinfo->cinfo, COL_INFO, " (version='%s')",
- format_text(server_version, server_version_length));
+ format_text((guchar*)server_version, server_version_length));
}
}
offset += (server_version_length*2);
/* Server version string */
proto_tree_add_string(tree, hf_msmms_command_tool_version, tvb,
offset, tool_version_length*2,
- format_text(tool_version, tool_version_length));
+ format_text((guchar*)tool_version, tool_version_length));
}
offset += (tool_version_length*2);
if (check_col(pinfo->cinfo, COL_INFO))
{
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
- format_text(player_info, (length_remaining - 12)/2));
+ format_text((guchar*)player_info, (length_remaining - 12)/2));
}
}
if (check_col(pinfo->cinfo, COL_INFO))
{
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
- format_text(server_file, (length_remaining - 16)/2));
+ format_text((guchar*)server_file, (length_remaining - 16)/2));
}
}
static gboolean rdt_register_udp_port = FALSE;
static guint rdt_udp_port = 0;
-
+void proto_register_rdt(void);
void proto_reg_handoff_rdt(void);
/* Main dissection function */
/* Save this conversation info into packet info */
p_conv_packet_data = se_alloc(sizeof(struct _rdt_conversation_info));
g_snprintf(p_conv_packet_data->method, MAX_RDT_SETUP_METHOD_SIZE, "%s", p_conv_data->method);
- p_conv_packet_data->method[MAX_RDT_SETUP_METHOD_SIZE]=0;
+ p_conv_packet_data->method[MAX_RDT_SETUP_METHOD_SIZE]=0;
p_conv_packet_data->frame_number = p_conv_data->frame_number;
p_conv_packet_data->feature_level = p_conv_data->feature_level;
p_add_proto_data(pinfo->fd, proto_rdt, p_conv_packet_data);