Hi All,
i have implemented a new routing protocol abiding the instructions given in the
"Implementing a new Manet unicast routing protocol in ns2" doc.
I have included the packet type,agent details etc in the
ns-lib.tcl,ns-packet.tcl,ns-default.tcl and also in common/packet.h.
added the protocol object entries in the OBJ_CC in Makefile.in
I tried running the
./configure
make clean
make
The object files were created and additionally these info were displayed..
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec
indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr
indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Entering directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be
done for `all'.
make[1]: Leaving directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: Entering directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: Entering directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/jayavignesh86/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
Then tried to invoke my protocol through tcl script,
but an error arised stating
jayavignes...@vignesh-laptop:~$ ns test_3n.tcl
num_nodes is set 121
(_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 < $opt(nn)} {incr i} {
set node_($i) [$ns_ node]
}"
(file "test_3n.tcl" line 117)
Could you please figure me out the problem?
Have i missed
any intermediate steps??
Thanks in Advance,
Jayavignesh
Looking for local information? Find it on Yahoo! Local
See the Web's breaking stories, chosen by people like you. Check out
Yahoo! Buzz. http://in.buzz.yahoo.com/