[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] new multicast packet header
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