Pashupatinath , 5 km ( 3 miles ) northeast of old Kathmandu , is dedicated to Shiva in his incarnation as Pashupati , the Lord of the Animals .
Shiva has been reincarnated six times , according to local beliefs .