I am having difficulty overriding default values from ns-defaults.tcl. In sim code I call a c++ functions that does initialization of the variable video_size_.
But my problem is that default value from ns-defaults.tcl is still the value attached to this variable. I checked it both with printf in c++ and puts in sim code. Normally, this value should have changed because a c++ function changes it. Is there something special that needs to be taken care of when overriding default values, certain order of calling functions etc.? When I delete the value from ns-defaults.tcl, there is a warning during simulation run but then I have correct value for that variable. I can live with that if the solution is not easily found. Hopefully there are no bad side effects when I ignore the warning. Your views are much appreciated. /Luqman -- Luqman