Hi all,

I'd like implemente GPSR in the ns-2.30 and do some test.

First step: change the files below:
packet.h ns-packet.tcl cmu-trace.cc priqueue.cc ns-default.tcl and ns-2.30's
Makefile

Then delete the file packet.o
touch packet.h
make clean
make

The result shows success.
But when I did the test file wirless-gpsr.tcl it showed the error below:


num_nodes is set        100
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
GPSR configuration file
INITIALIZE THE LIST xListHead
 invalid command name "Agent/GPSRAgent"

   while executing
"Agent/GPSRAgent create _o29 0"
   invoked from within
"catch "$className create $o $args" msg"
   invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
   (procedure "new" line 3)
   invoked from within
"new $opt(ragent) $id"
   (procedure "create-gpsr-routing-agent" line 7)
   invoked from within
"create-gpsr-routing-agent $node $id"
   (procedure "gpsr-create-mobile-node" line 43)
   invoked from within
"gpsr-create-mobile-node $i"
   ("for" body line 2)
   invoked from within
"for {set i 0} {$i < $opt(nn) } {incr i} {
   gpsr-create-mobile-node $i
}"
   (file "wireless-gpsr.tcl" line 265)

PS: I downloaded GPSR_KeLiu_SUNY_Binghamton.tgz for GPSR codes. All the
changing for the files followed the Readme in the packet.


Has anyone met the same problem as me? Can anyone help me get out of this
problem?

Thank you very much!!!!!

Reply via email to