Thanks Sir, I modified the command method for AODV. Now when I run the example I do not get any error, but nothing gets written in the trace file/nam file.
On command window what I get is num_nodes is set 8 INITIALIZE THE LIST xListHead Starting Simulation... channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 212.8 SORTING LISTS ...DONE! *Scheduler: attempt to schedule an event with a NULL handler. Don't DO that. *Any suggestions !! Thanks for your help Regards Kiran On Thu, Apr 9, 2009 at 4:34 PM, Ramon Aguero <ra...@tlmat.unican.es> wrote: > Hi Kiran, > > I think you need to modify the command method of the AODV routing agent. I > did not include that in the AODV specific information, but you need to > make the changes as shown in the corresponding Listing for the generic > routing agent class (I am not currently looking at the howto, but I think > it was Listing 5.2). > > Hope it helps, > Ramón > > > Hi All, > > > > > > I made the modifications in the Ns2.33 as given in the PDF by Prof.Ramon. > > But after successful compilation when i run a simple tcl script it gives > > error as listed. I am not able to find out the reason for the error. > > > > INITIALIZE THE LIST xListHead > > (_o19 cmd line 1) > > invoked from within > > "_o19 cmd if-queue 0 _o22" > > 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 "_o19" line 2) > > (SplitObject unknown line 2) > > invoked from within > > "$agent if-queue $i [$self set ifq_($i)]" > > (procedure "_o16" line 27) > > (Node/MobileNode add-target line 27) > > invoked from within > > "$self add-target $agent $port" > > (procedure "_o16" line 15) > > (Node attach line 15) > > invoked from within > > "$node attach $ragent [Node set rtagent_port_]" > > (procedure "_o3" line 82) > > (Simulator create-wireless-node line 82) > > 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" > > invoked from within > > "set node0 [$ns_ node]" > > (file "multi.tcl" line 52) > > > > > > Please help to resolve the problem. > > > > Thanks. > > > > Regards > > Kiran > > > > > > -- ........................................................................................................................................................ Every footstep in life is full of possibilities we just need to know our ability to explore them ........................................................................................................................................................ ........................................................................................................................................................