/* dissect_reliable_message_index_base is a utility function which calculates the packets RMIB if and only if the reliable flag is set to 1. */
static int dissect_reliable_message_index_base(tvbuff_t *buffer, int offset, proto_tree *tree)
/* dissect_reliable_message_index_base is a utility function which calculates the packets RMIB if and only if the reliable flag is set to 1. */
static int dissect_reliable_message_index_base(tvbuff_t *buffer, int offset, proto_tree *tree)
{
    int byte_count = 2;
    if(tvb_get_guint8(buffer, offset+1) & 0x80)
        byte_count = 4;
    proto_tree_add_item(tree, hf_knet_rmib, buffer, offset, byte_count, ENC_LITTLE_ENDIAN);
    return byte_count;
}