[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address format changing hasn't completed? (fwd)
Guo,
You are right, having addr_ on that line (route-proto.tcl:456) causes
ns to abort. It should be changed to agent_addr_. The snapshot will
be updated shortly. you may go ahead and make the same change on your
code and not wait.
Thanks,
Nader
>> Guo,
>>
>> You should not have a problem. The addr_ variables in the Tcl files
>> you mention point to node addresses. If an addr_ is part of an agent,
Guo>
Guo> I still don't get it, in line 456 of route-proto.tcl, there's following
Guo> statement:
Guo> $proto($node) add-peer $nbr [$rtproto set addr_]
Guo> To my knowledge, here addr_ should be the variable of $rtproto, which
Guo> is an routing agent (DV).
Guo>
>> it is bound to here_.addr_ of the associated C++ shadow object.
Guo>
Guo> where's this "bind" called? I only find it in mip.cc, not in agent.cc.
Guo>
>>
>> Nader
>>
Guo>
Guo> Thanks.
Guo>
Guo> But even running a simple simulation like .../ex/simple-rtg.tcl, you'll
Guo> get the following messages:
Guo>
Guo> can't read "addr_": no such variable
Guo> while executing
Guo> "subst $[subst $var]"
Guo> (procedure "_o115" line 5)
Guo> (Object next line 5)
Guo> invoked from within
Guo> "_o115 next addr_"
Guo> ("eval" body line 1)
Guo> invoked from within
Guo> "eval $self next $args"
Guo> (procedure "_o115" line 18)
Guo> (Agent set line 18)
Guo> invoked from within
Guo> "$rtproto set addr_"
Guo> (procedure "Agent/rtProto/DV" line 18)
Guo> (Agent/rtProto/DV init-all line 18)
Guo> invoked from within
Guo> "Agent/rtProto/DV init-all"
Guo> ("eval" body line 1)
Guo> invoked from within
Guo> "eval Agent/rtProto/$proto init-all $rtprotos_($proto)"
Guo> (procedure "_o96" line 5)
Guo> (RouteLogic configure line 5)
Guo> invoked from within
Guo> "[$self get-routelogic] configure"
Guo> (procedure "_o3" line 5)
Guo> (Simulator run line 5)
Guo> invoked from within
Guo> "$ns run"
Guo> (file "simple-rtg.tcl" line 80)
Guo>
Guo>
Guo>
Guo>
Guo> I think the problem is related to the "addr_" variable.
Guo>
Guo>