For otcl changes to the default library, also check if calling "source ns-lib.tcl" at the beginning of the simulation solves your problem. Also check the example I give in http://inesc-0.tagus.ist.utl.pt/~pmsrve/ns2/ns2_tips.html#_Toc121320478 Pedro Vale Estrela > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Francisco J. Ros > Sent: domingo, 8 de Janeiro de 2006 23:58 > To: ns-users@ISI.EDU > Cc: cenker demir > Subject: Re: [ns] "wrong node routing agent" error... I couldn't > findanything helpful in the archive... > > > Hi, > > It seems that you aren't recompiling the whole simulator. Please be sure > that > you aren't getting any error when executing "make clean && make", and also > that you're invoking your modified version of ns2 (in the case that you > have > several ns2 installations). > > If your problem persists, you can mail me again. > > Regards, > fran > > On Sunday 08 January 2006 19:04, cenker demir wrote: > > Hello all, > > > > I am using ns-allinone-2.28 on cygwin (win XP). I had > > to create a "clone" of AODV and change its some > > attributes with a new name according to my scenario. I > > named my protocol "aodv_au" and copied the aodv folder > > changing its name to aodv_au. Then I changed every > > "aodv" word in aodv*.cc/h/tcl files(i know this sounds > > stupid!!!) to aodv_au, including the file names in > > that copied folder. My aim was to create a second aodv > > with a name (aodv_au) first, then to change it step by > > step. And by following Francisco Ros's tutorial -which > > is quite helpful- > > (http://masimum.dif.um.es/nsrt-howto/html/), I made > > necessary changes and additions as well(packet.h, > > priqueue.cc, cmu-trace.h/cc, > > ns-lib/default/packet.tcl, makefile, etc.). After > > "touch"ing packet.cc , I recompiled ns2, by running > > "make". When I tried to run a script with my own > > protocol name it gave this famous "wrong node routing > > agent" error. After changing lowercase and uppercase > > version of the routing agent name in my script > > thinking that the name might be wrong somehow, I tried > > to find an answer for my problem in ns-users archive. > > I downloaded all the archive text files since 1998 and > > tried to find an answer. As an answer, for > > troubleshooting, Mr.Ros was suggesting to change > > ns-lib.tcl file as below: > > > > switch -exact $routingAgent_ { > > #.... > > > > default { > > puts "Wrong node routing agent!: $routingAgent_" > > exit > > } > > #..... > > } > > > > just to see which routing protocol name is coming up > > as the routing agent, i think. > > > > However, even after this change and while expecting to > > see something like "wrong node routing agent: XXXX", I > > saw the same error without any routing agent name: > > "wrong node routing agent!". > > > > I did "make clean", and recompiled everything again. > > However, I am still getting the same error. Why does > > my change in "ns-lib.tcl" not affect the error > > message? > > > > If anybody had this error before, I saw too many > > messages about this issue, please let me know how you > > solved this problem. > > > > Any ideas/answers will be appreciated... > > > > thank you > > Cenker > > > > > > > > > > __________________________________________ > > Yahoo! DSL - Something to write home about. > > Just $16.99/mo. or less. > > dsl.yahoo.com > > > > > ______________________________________________ > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y moviles desde 1 centimo por minuto. > http://es.voice.yahoo.com