Monday, April 18, 2005

add a traced variable in ns-2:

1. Add a TracedInt member in head file in cpp space
2. do whatever you need with the variable in cpp space.


3. ma in ns-2.28/tcl/lib/ns-default.tcl to define the variable in tcl space.

2 Comments:

Blogger David said...

need to "make clean" and "make" again.
otherwise, segmentation fault may happen

5:35 AM  
Blogger David said...

if you want a special format instead of TracedInt, you need to change the corresponding traceVar function. e.g. in tcp.cc

11:16 PM  

Post a Comment

<< Home