Thnx guys for ur help about compiling NS .. it worked using explicit casting .. Did some one know when can i have documentation about how to add a new Protocol to NS (extension)... I saw mash.CS.Berkeley.EDU site .. but i didn't find the way to do it .. more informations will be nice .. Thank u again ..