Hello everyone.
I'm a newbie to ns-2 (using 2.28) and trying to add new routing agent.
I followed the processes in "Implementing a New Manet Unicast Routing
Protocol in NS2".
It is compiled well, but when I run my ns script it shows following error
message.
I can't know what problem is.
Please help me.
Thank you in advance.
------------------------------------------
can't read "debug_": no such variable
(Object set line 1)
invoked from within
"CMUTrace/Send set debug_"
invoked from within
"catch "$c set $var" val"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent target $sndT"
(procedure "_o14" line 31)
(Node/MobileNode add-target-rtagent line 31)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 23)
(Node/MobileNode add-target line 23)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 71)
(Simulator create-wireless-node line 71)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 14)
(Simulator node line 14)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"