/* RakNet is just a dissector. It is invoked by protocols whose applications are built using the RakNet libs.  */
static int dissect_raknet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
/* RakNet is just a dissector. It is invoked by protocols whose applications are built using the RakNet libs.  */
static int dissect_raknet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
{
    guint8 packet_id;
    col_set_str(pinfo->cinfo, COL_PROTOCOL, "RAKNET");
    col_clear(pinfo->cinfo, COL_INFO);
    packet_id = tvb_get_guint8(tvb, 0);
    if (!dissector_try_uint_new(raknet_dissector_table, packet_id, tvb,
                pinfo, tree, TRUE, NULL)) {
        proto_tree_add_expert(tree, pinfo, &ei_raknet_uknown_id, tvb,
                0, 1);
    }
    return tvb_captured_length(tvb);
}