Hello all,

Recently i have implemented a routing protocols for MANET's in NS-2. Know i would like somehow to get a dump of the routing table at some specific time intervals.

I have defined a print function in routing table class of based on a tutorial (http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf) i saw on the Internet.

void myproto_rtable::print(Trace* out) {
..
}

This function is invoked through a TCL command for example:

$ns_ at 15.0 "[$node_ agent 255] print_rtable"

I would like to know how to instantiate a new Trace object in TCL in order to dump the routing table in a seperate trace file. So far i have managed to dump the routing table in the "trace-all" file.

Thanks in advance.

-Nicholas.


--
_________________________________________________

Nicholas Loulloudes
High Performance Computing Systems Laboratory (HPCL)
University of Cyprus,
Nicosia, Cyprus

Tel:  +357-22892663
Email: loulloudes.n[at]cs.ucy.ac.cy

Reply via email to