I got the solution , there was not error in Coding , problem with my TCL file i was not declaring node as a Dsr node .
for { set i 0 } { $i < $opt(nn) } { incr i } { #set node_($i) [$ns node] $node_($i) random-motion 0 ;# disable random motion $god_ new_node $node_($i) } i added this and then everything Worked very well -- View this message in context: http://network-simulator-ns-2.7690.n7.nabble.com/ns-Adding-Some-Custom-Information-in-Mobile-node-tp26231p26235.html Sent from the ns-users mailing list archive at Nabble.com.