[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] unable to attach traffic to new agent
You declare your agent as Agent/TUDP? Then it will not inherit any
pure otcl instprocs nor bound variales from Agent/UDP; you must declare it
as Agent/UDP/TUDP to show the inheritance.
Then, it seems to me attach-traffic is an obsolete command, which only
appears in backward compatibality mode of UDP (ns-source.tcl). You should
use the attach-agent of the traffic source.
- Haobo
On Fri, 7 Apr 2000, Ishwinder Singh wrote:
> hi all,
> i developed a variant of UDP called TUDP in the manner given in
> the tutorial. i basically modified the udp files to make my tudp files and
> made changes to the tcl file as given in tutorial. i was able to do a
> successful make but when i try out an example, say attaching a CBR source
> to my agent i get the following output:
>
> warning: no class variable Agent/TUDP::packetSize_
>
> see tcl-object.tcl in tclcl for info about this warning.
>
> warning: no class variable Agent/TUDP::off_tag_
>
>
> (_o34 cmd line 1)
> invoked from within
> "_o34 cmd attach-traffic _o36"
> invoked from within
> "catch "$self cmd $args" ret"
> (procedure "_o34" line 2)
> (SplitObject unknown line 2)
> invoked from within
> "$myagent attach-traffic $cbr0"
> (file "example1.tcl" line 28)
>
>
> can some one help me out here?
>
>
> thx,
> Ishwinder Singh
>
>
> ---------------------------------------------------------------------
>
>
> -------------------
> Ishwinder Singh
> Deptt. of EE,
> University of Hawaii at Manoa,
> Honolulu,
> HI 96822
>
> Ph: 808 - 956-5209
>
>