Re: [ns] how to find where a variable is initialized

2008-10-06 Thread Daniel Dekst
Thanks a lot! reza mohammadi <[EMAIL PROTECTED]> wrote: hello you must set some variable in ns-default.tcl file for example set mac/802_11 bandwidth_ 1e6 ns-default.tcl is in ns-allinone-2.32/ns-2.32/tcl/lib good luck Mubashir Rehmani <[EMAIL PROTECTED]> wrote: Hi I think that

Re: [ns] how to find where a variable is initialized

2008-10-04 Thread Daniel Dekst
Hi, Mubashir, Thanks a lot! Usually I can find where a variable is defined (in which Class) but it is difficult to find out who call a command to change it. In this case, cache_node_count_ is defined in class Mac802_11 and is initialized to 0. Fortunately I notice that there is a c

Re: [ns] how to find where a variable is initialized

2008-10-04 Thread Mubashir Rehmani
Hi Daniel Dekst, You can find the variables here http://www-rp.lip6.fr/ns-doc/ns226-doc/html/functions.htm Regards Mubashir Husain Rehmani 2008/10/4 Daniel Dekst <[EMAIL PROTECTED]> > > > Hi, everyone, > > How to find where a variable is initialized ? > I add a new mac same as mac-802_11, but

[ns] how to find where a variable is initialized

2008-10-03 Thread Daniel Dekst
Hi, everyone, How to find where a variable is initialized ? I add a new mac same as mac-802_11, but it puts warning MAC_RMAC: accessing MAC cache_ array out of range (src 0, dst 1, size 0)! I found out that it is due to cache_node_count_ = 0. It must be set somewhere in MAC/802_11, but I do not k