[ns] [Fwd: Re: text editor for redhat]

2009-09-30 Thread David Ross



 Original Message 
Subject:Re: [ns] text editor for redhat
Date:   Tue, 29 Sep 2009 23:33:30 +
From:   David Ross david.r...@isrc.qut.edu.au
To: ns2-mailing list ns-users@ISI.EDU
References: bay144-w7f5342c473558c4a648af85...@phx.gbl



vi, vim or nano are the usual choices on unix-like systems - David.

najwa al_mawajdeh wrote:

 hi every body,

 does any body know a good text editor to work under the linux redhat for the 
 c++ code.

 thanks alot


 Najwa 



 
 _
 Show them the way! Add maps and directions to your party invites. 
 http://www.microsoft.com/windows/windowslive/products/events.aspx
   





[ns] Error when try to run nam

2009-09-30 Thread thangnd

Dear all,
I installed  NS-allinone-2.33.
1. When i open terminal i get Notification:
bash: /home/thangnd/ns-allinone-2.33/lib: is a directory
bash: /home/thangnd/ns-allinone-2.33/tcl8.4.18/library: is a directory 
above of terminal window (thangnd is my username on ubuntu 9.04).
2.When i enter command: cd /home/thangnd/ns-allinone-2.33/nam-1.13/ex 
then enter: nam lan.nam to test and get notification:
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
bind Listbox MouseWheel {
%W yview scroll [expr {- (%D / 120) * 4}] units
}
invoked from within
if {[tk windowingsystem] eq classic || [tk windowingsystem] eq aqua} {
bind Listbox MouseWheel {
%W yview scroll [expr {- (%D)}] units
}
bind Li...
Please help me about this issue.
Thanks.


[ns] Print Route table in trace file

2009-09-30 Thread jaya vignesh

Hi All,

Can anyone guide me how to print the routing table of a particular node when 
scheduled from the tcl script.

in the main cc file,

1: int
2: Protoname::command(int argc, const char*const* argv) {
3: if (argc == 2) {
4: if (strcasecmp(argv[1], start) == 0) {
5: pkt_timer_.resched(0.0);
6: return TCL_OK;
7: }
8: else if (strcasecmp(argv[1], print_rtable) == 0) {
9: if (logtarget_ != 0)
 {
10:    sprintf(logtarget_-pt_-buffer(), P %f _%d_ Routing Table,
11:    CURRENT_TIME,
12:    ra_addr());
13:    logtarget_-pt_-dump();
14:    rtable_.print(logtarget_);
15:    }
16:    else {
17:    fprintf(stdout, %f _%d_ If
 you want to print this routing table 
18:    you must create a trace file in your tcl script,
19:    CURRENT_TIME,
20:    ra_addr());
21:    }
22:    return TCL_OK;
23:    }
24:    }

And say i give the following command in tcl

$ns_ at 15.0 [$node_(0) agent 255] print_rtable

to print the routing table of node 0 at 15 sec.

When i run, i get segmentation fault

Please Help me
 out!!

Thanks,
Jayavignesh


  Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/photos