[ns] Re : New protocol added..but error in running tcl script
Nadine Chen
nadine341 at yahoo.fr
Tue Mar 24 06:00:12 PDT 2009
hi,
to solve this problem, after make, you should execute make install , and your protocol will work fine.
hope this helps.
--- En date de : Mar 24.3.09, Kiraneet sharma <kiraneet.sharma at gmail.com> a écrit :
De: Kiraneet sharma <kiraneet.sharma at gmail.com>
Objet: [ns] New protocol added..but error in running tcl script
À: ns-users at ISI.EDU
Date: Mardi 24 Mars 2009, 11h52
Hello everyone...
I have added a new protocol in ns2,which is an extension of aodv.
After making the required changes in all the files,running ./configure and
make goes well...
But if I run a tcl script using that protocol it shows an error :
(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
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 "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 11)
(Simulator create-wireless-node line 11)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
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]
}"
I have checked the case sensitivity of protocol name too...
Any solution ?
More information about the Ns-users
mailing list