The name "Karnan" is strongly associated with Karna, a pivotal character in the Hindu epic Mahabharata. He is known for his immense strength, skill in archery, and tragic fate. However, there is no mention of him ever being a king or having a title like "Kodaivallal".
Kodaivallal is a Tamil word that means "gift-giver," a title often used for generous kings.
It's possible you might be referring to a different character or story with a similar name or connection to the Mahabharata. To help me understand better, could you provide more details or context about the story you are interested in?