The larva is the stage right after the eggs are laid. In this stage, the larva is white and legless.
While the pupae are in the cocoon, they are incased in a shelter, often called an ant-house.