Lawful and unlawful acts at graveyards and upon burial

If a man is sitting in the public road and a funeral procession passes by him, should he stand up or remain seated?