Re: [ns] Setting tcl script variables from inside C++ code

2009-01-22 Thread Waleed Tuffaha
Hello Fernando, You can use the following code: Tcl tcl = Tcl::instance(); sprintf(tcl.buffer(), set my_tcl_var %f, 10.123); tcl.eval(); Note that you can use the same method to execute any command on Tcl. You can find more information in chapter 3 of the ns-manual. Good luck Waleed On Tue,

Re: [ns] How to determine txpower from Pt_

2009-01-22 Thread Waleed Tuffaha
. But the maximum transmitting power is 15 dBm ( ~ 31 mW) ! -- Waleed Tuffaha On Wed, Jan 21, 2009 at 7:07 AM, manish chaturvedi msc@gmail.comwrote: Hi, I am trying to incorporate energy model in my NS2.33 simulation. I have some confusion between Pt_(used to set transmission range), and txpower

Re: [ns] how to chang the shape of the nodes

2009-01-02 Thread Waleed Tuffaha
the shape of the node by giving $node_(0) shape box but no change in my nodes.plz help me how to change and enlarge its size. Thank you -- Waleed Tuffaha.

[ns] DSR Route-Request size error

2008-12-22 Thread Waleed Tuffaha
that the size of the packet is always changed by +-srh-size() instead of +-4 : cmnh-size() += srh-size(); cmh-size() -= srh-size();// cut off the SR header 4/7/99 -dam I want to know if that is a bug ? or am I missing something ? Thanks, Waleed Tuffaha.

Re: [ns] Can anyone tell me how to debug ns2 2.33 using gdb? No successful examples could have been googled yet.

2008-12-21 Thread Waleed Tuffaha
-allinone can be debugged by gdb. And if it is not, what debugging method can I use if I want to add a new MAC protocol? Thank you in advance. Yours sincerely, Matthew Wood -- Waleed Tuffaha.

Re: [ns] puzzles on Agent and Router

2008-12-20 Thread Waleed Tuffaha
, -agentTrace and -routerTrace. Which one should I use when evaluating my algorithm ? Wish someone can give me some explains. Thanks in advance. Regards, Phenix -- Waleed Tuffaha.

Re: [ns] problem when adding a new routing protocol to NS2:please help

2008-12-18 Thread Waleed Tuffaha
if anyone has an idea about this error , help me. I don't know if I should add a file in mobility or what should I do exactly. help me please. -- Waleed Tuffaha.

Re: [ns] ns-2.33 re-compilation error

2008-12-06 Thread Waleed Tuffaha
the 'hdr_dgab_pkt::offset_' , and this cause the undefined reference error. Nevertheless, this small problem caused me a sever headache. On Sat, Dec 6, 2008 at 7:28 PM, Waleed Tuffaha [EMAIL PROTECTED] wrote: Hello, I was writing an agent in ns-2.33 and it was compiling and working well. Then I

Re: [ns] Know destination and Source address

2008-11-30 Thread Waleed Tuffaha
All, I am newbie to ns2. I would like to know *destination* and *source address* of each incoming packet of a node. Could please anyone help me how to do this? Thanks in advance Regards Thanes -- Waleed Tuffaha.

Re: [ns] TCL Script - No Slot Error

2008-11-22 Thread Waleed Tuffaha
run -- Waleed Tuffaha.

Re: [ns] Fwd: Problem with trace-all in NS2

2008-11-16 Thread Waleed Tuffaha
line 5) invoked from within finish I would really appreciate if anyone could help me out with this error? I am able to open the nam file using the open command but I am not able to find out why tracefile1 is not getting created. Regards Kanu -- Waleed Tuffaha.

Re: [ns] collisions in 802.11 or interference

2008-11-15 Thread Waleed Tuffaha
capture the packets that did not pass the CRC check. Best regards, -- Waleed Tuffaha Date: Thu, 13 Nov 2008 10:23:05 -0500 From: Imad Abdeljaouad [EMAIL PROTECTED] Subject: Re: [ns] collisions in 802.11 or interference To: Basim Javed [EMAIL PROTECTED] Cc: ns-users@isi.edu ns-users@ISI.EDU