Hi, I have a question about tracing a C++ variable from tcl. I would like to trace the v_baseRTT_ variable for TCP vegas. How do I go about doing that?
I tried binding the variable in tcp.cc by doing: bind("v_baseRTT_", &v_baseRTT_); I then tried to log v_baseRTT_ from tcl by doing: set base_rtt [$tcpSource set v_baseRTT_] where $tcpSource is a Vegas TCP source. The problem is that the tcl interpreter does not recognize the v_baseRTT variable. I also tried to adding the following line of code to delay_bind_dispatch() in tcp.cc: if (delay_bind(varName, localName, "v_baseRTT_", &v_baseRTT_ , tracer)) return TCL_OK; NS did not like that last line of code though. Any help would be greatly appreciated. Thanks! Best, Karim