[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] new multicast packet header



Did you explicitly say 

Agent/Mcast/Control set packetSize_ 1024

in ns-default.tcl and recompile? That's the only reason I know that
gives this warning. If you did it and it still gives you warning, thenI
have no idea why it does it. :(

- Haobo

On Tue, 7 Mar 2000, Lori Flynn wrote:

> Actually, I do already! (See below where I say I define the size in the
> ns-default.tcl file...)
> 
> -Lori
> 
> > you need to give them initial value in ns-default.tcl. 
> > 
> > - Haobo
> > 
> > On Mon, 6 Mar 2000, Lori Flynn wrote:
> > 
> > > Hi all,
> > > 
> > > I am creating 1)a  new mcast packet header and 2) a new agent to deal with
> > > receiving and sending these packets with the new headers.  I have followed
> > > the Marc Greis example in order to make this work.  (section 7 of the
> > > tutorial)
> > > 
> > > However, when I try to run a script which creates the new agent, I get
> > > this error:  
> > > warning: no class variable Agent/Mcast/Control::packetSize_
> > >         see tcl-object.tcl in tclcl for info about this warning.
> > > warning: no class variable Agent/Alert::off_ping_
> > >         see tcl-object.tcl in tclcl for info about this warning.
> > > 
> > > 
> > > Looking at 'tcl-object.tcl', it says that the Otcl/C++ link didn't work
> > > because there was no variable declared.  However, following the Greis
> > > example, packetSize_ is not explicitly 'declared', other than defining the
> > > size in the ns-default.tcl file and binding it to size_ in the ping.cc
> > > file.  'off_ping_' is declared in ping.h, then bound in ping.cc and
> > > mentioned in ns-packet.tcl.  
> > > 
> > > Do I need to do more for ns2 to see my variables?
> > > 
> > > Thanks,
> > > -Lori
> > > 
> > > 
> > 
> 
>