Hello NS Users,

I installed ns2.34 allinone in ubuntu 9.10. And first time, I am trying to
add a new protocol in NS2.
I followed the steps at:
http://masimum.inf.um.es/nsrt-howto/pdf/nsrt-howto.pdf

After applying changes, I did:
$ make clean
$ make

When I run my tcl script then it gives below error. I thought NS2 is not
identifying the new protocol that I added. The new protocol name that I
added is "LVRF" and used the same name in TCL script. TCL script is
attached.
Please guide me to fix the issue.

(_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 14)
(Simulator create-wireless-node line 14)
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]
$node_($i) random-motion 0;
}"
(file "lvrf.tcl" line 63)

-- 
Regards,
Manoop Talasila
Ph.D. student
CS Dept, NJIT
Email: m...@njit.edu

Reply via email to