Re: [ns] Hello, if there are some sip implementations in ns2

2007-05-30 Thread Timo Reimann
tiger wrote: I wonder if there are some sip implementations in ns2. Could you please email the codes to me or direct me to the appropriate website. Thanks a lot. One thing you should do before posting to the list is google for your topic. --Timo

Re: [ns] Where is the interface between Agent and Node?

2007-05-26 Thread Timo Reimann
Wang Ivan wrote: I traced the C++ source code for Agents and found that packets sent by an agent is directly passed to the target agent ( target_-recv(p,h) ) rather than to the lower layer. For real TCP/IP, packets should be passed down to the physical layer, sent to the target, and then

Re: [ns] possible C++ binded variable type

2007-05-24 Thread Timo Reimann
Ramzi Tka wrote: I would like to know which are the possible types of variables that we could bind to tcl variables? I'm considering pointer-typed C++ variable. kind regards, Look it up in the manual. Pointers are not supported IIRC. --Timo

Re: [ns] Connect agents dynamically

2007-05-24 Thread Timo Reimann
[EMAIL PROTECTED] wrote: The agent.h file defines the argument to connect as nsaddr_t and not ns_addr_t. (My ns version is ns-2.30) Same here, I'm using 2.30 as well. You need to change the definition/declaration to ns_addr_t. And i need to dynamically connect src agent to dst agent, and

Re: [ns] Connect agents dynamically

2007-05-23 Thread Timo Reimann
[EMAIL PROTECTED] wrote: I need to connect agents dynamically for my purpose, so i have changed the agent.cc code as suggested by the comments in it. /* This function is a placeholder in case applications want to dynamically * connect to agents (presently, must be done at configuration

Re: [ns] how to solve segmentation fault in ns2

2007-05-22 Thread Timo Reimann
[EMAIL PROTECTED] wrote: I am working on add multi-interface multi-channel support in ns2 ,but now I meet a segmentation fault in implementing adding Multiple Interface Support in NS-2, I use command : $gdb ns $r channel.tcl $bt .. Now I think segmentation fault is caused

Re: [ns] attaching ns with real hardware/device

2007-05-22 Thread Timo Reimann
Woo Michael-W16734 wrote: I am looking for ns projects where the network simulator is connected to real hardware (such as WLAN access point). This will require an interface that can capture real packets on the real network and convert them appropriately for the simulator and let the

Re: [ns] tcl-debugger cannot use command 'w' to watch call stack

2007-05-20 Thread Timo Reimann
landrew wrote: i'am using ns2.31,and i use tcl-debugger2 for debugging. all things in debugging are ok except that after i use 'w' command to watch call stack, then when i use the next command , most of the time i'll get a core dump. [snip!] i've installed ns2 and tcl-debugger in cygwin

Re: [ns] Where to get Debugger for NS2 (ns-29-3, tcl8.4.11)?

2007-05-18 Thread Timo Reimann
Das Santos Kumar wrote: Could you please mention me where to get NS debugger for ns-29-3 (tcl8.4.11)? For the compiled stuff, you just use any C/C++ debugger, like gdb or ddd. For OTcl, there's a tcl debugger linked via the ns-2 webpage. There's more information on this in the wiki

Re: [ns] changing node positions

2007-05-18 Thread Timo Reimann
Sita S. Krishnakumar wrote: I am writing to see if anyone has successfully changed node positions dynamically in code? Node locations can be set using setdest in tcl code, but I am looking to do it in the ns-2 code in c/c++. Please share your experiences. I don't know how to do that but I'm

Re: [ns] Nam installation error --in Ubuntu

2007-05-11 Thread Timo Reimann
Tiago Junqueira wrote: After making: ./configure --prefix=/usr/local/stow/nam-1.11 --with-tk= with the tk8.4 folder inside the nam's folder, i made: make and i got the error: .c:87:29: error: X11/Xmu/WinUtil.h: No such file or directory Install the `libxmu-headers' package. If you

Re: [ns] make[1]: nothing to be done for 'all'

2007-05-09 Thread Timo Reimann
Kwnstantina Palla wrote: Timo Reimann [EMAIL PROTECTED] said: Kwnstantina Palla wrote: I am using openSUSE 10.2 and recently i installed the ns2-allinone-2.29 package. after a succesful installation i followed the 'make ' command. there i met some troubles. Being more specific

[ns] where/how to intercept packages for a particular node?

2007-05-09 Thread Timo Reimann
Hi all, I have a problem to tackle and I'd like to have some input from other ns2 users on how to accomplish my goal. Basically, I'm trying to implement a protocol monitor, that is, an object which is capable of intercepting (in terms of copying) packages designated for a particular node and do

Re: [ns] Fwd: make[1]: nothing to be done for 'all'

2007-05-08 Thread Timo Reimann
Kwnstantina Palla wrote: I am using openSUSE 10.2 and recently i installed the ns2-allinone-2.29 package. after a succesful installation i followed the 'make ' command. there i met some troubles. Being more specific: make[1]: Entering directory

[ns] improvement request to website/mailing list: add posting rules to user mailing list page

2007-05-07 Thread Timo Reimann
Hiya, this request goes out to the people maintaining the ns-2 webpage. The only maintenance info I've found on the website was the user's mailing-list address. Since I had posted there and people suggested to put my request here instead, I'm doing that right now. If there is someone else to

Re: [ns] improvement request to website/mailing list: add posting rules to user mailing list page

2007-05-07 Thread Timo Reimann
Sorry, wrong list again. My bad! Timo Reimann wrote: this request goes out to the people maintaining the ns-2 webpage. The only maintenance info I've found on the website was the user's mailing-list address. Since I had posted there and people suggested to put my request here instead, I'm

Re: [ns] SIP Implementation

2007-05-05 Thread Timo Reimann
golrokh mirzaee wrote: I'm looking forward an NS SIP implementation, even a very basic one. If anyone knows where i can find anything, please let me know. Mailing-list.

Re: [ns] No rule to make -error

2007-05-05 Thread Timo Reimann
Girma Kassa wrote: I wrote a new protocol and try to patch to ns-allinone-2.29. What I did is 1. I wrote the header and source files in C++ 2. I make necessary changes as stated on manuals that I got from internet 3. I changed the make file, i.e. add a line mipbu/mipbu.o\ where mipbu is a

Re: [ns] regarding sendmsg()

2007-05-03 Thread Timo Reimann
Anuradha Sehgal wrote: Sir I did as you said about type casting if (flags (0 ==strcmp(flags, NEW_BURST))) rh-flags() |= RTP_M; p-setdata(data); printf(Data: %s :, ((PacketData*)p-userdata())-data()); target_-recv(p); But it gives me segmentation error when i run the tcl

Re: [ns] [ns2] vector use in ns2

2007-05-02 Thread Timo Reimann
Jack Yang wrote: I have a urgent question here. http://www.catb.org/~esr/faqs/smart-questions.html#urgent http://nsnam.isi.edu/nsnam/index.php/Troubleshooting#when_and_how_to_write_to_the_user.27s_mailing-list When I used the vector in ns2 and declared like this: vectorstring

Re: [ns] regarding sendmsg()

2007-05-02 Thread Timo Reimann
Anuradha wrote: First of all thanks to Mr. Timo, for his help regarding sendmsg(). It's either Timo or Mr. Reimann. I prefer the former. :) As I wanted to see the data that i set in the tcl file, I edited the ../tcl/ex/udpdata.tcl like $ns at 0.1 $udp0 send 724 Hello1 $ns at 0.2 $udp1

Re: [ns] problem: Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl)

2007-05-01 Thread Timo Reimann
Anuradha wrote: did you find the solution of Classifier no-slot problem. I am also having the same problem. Actually, I once had this very problem as well. Happened to me when I was extending UdpAgent to allow connect-on-demand functionality and I had not given the address in proper format

Re: [ns] regarding sendmsg() in udp.cc

2007-05-01 Thread Timo Reimann
Hello Anuradha, Anuradha Sehgal wrote: Sorry to mail you personally. I got your mail id from ns-users list. Please don't address me personally, always use the mailing list. Other people might have the same problem as you and will be glad you find any help available through the mailing list

Re: [ns] error while executing qaodv routing protocol

2007-05-01 Thread Timo Reimann
dorababu wrote: I made some changes in aodv.cc for adding qos extention in aodv protocol. after that i type make command in the konsole to check the protocol.But i am getting following error expected primary-expression before '.' token , i am unable to find the problem. any help

Re: [ns] compute RTT

2007-04-27 Thread Timo Reimann
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: can some one tell me a procedure to compute the round trip time thanks in advance It's in the mailinglist archives. i can't find it, could you send me it please,(RTT for tcp protocol) are be grate ful. I used rtt to search in the

Re: [ns] problem with debugger

2007-04-26 Thread Timo Reimann
juan manuel gomez garcia wrote: Recently I install the debugger in my system following the Tae-hyung Kim manual. All run ok. But when I changed a file, for example, p802_15_4mac.cc and then do 'make clean', 'make'; I dont see the changes. Why? The gdb say me: warning: Source file is more

Re: [ns] compute RTT

2007-04-26 Thread Timo Reimann
[EMAIL PROTECTED] wrote: can some one tell me a procedure to compute the round trip time thanks in advance It's in the mailinglist archives. --Timo

Re: [ns] Problem in making changes

2007-04-25 Thread Timo Reimann
adithya b wrote: My name is adithya, i am working on Routing protocols of Ad hoc wireless networks.. Now i wanted to know, if i want to make any changes in the inbuilt protocols how to do that, and how to reflect the effect of the changes made. The ns2 manual will most likely prove to be

Re: [ns] NS2 debugging

2007-04-24 Thread Timo Reimann
manpreet grewal wrote: I am new to gdb debugger please help me in this... I am using ns-allinone-2.28 under cygwin on Windows XP... I have added a small function in tora_dest.cc file.. I want to see while running tora.tcl, is that function refered... [snip] i also executed {gdb) r

Re: [ns] Query about errors during running make command

2007-04-13 Thread Timo Reimann
Anuradha Sehgal wrote: The three errors are: error:expected primary-expression before int. error:expected ; before int error::non-lvalue in assignment why these errors are occuring?? You've been reposting this identically at least twice. This is not going to help you increase your chances

Re: [ns] HELP: installation problems - no display found for nam

2007-04-13 Thread Timo Reimann
Daniel wrote: I tried to install on my Intel based MacBook Pro the ns2-allinone-2.29.3-Precompiled-UniversalBinary-Intel-Mac package that I found here http://nsnam.isi.edu/nsnam/index.php/Downloading_and_installing_ns-2. I tried to run a simple tcl example script ( /ns-2.29/tcl/ex/simple.tcl

Re: [ns] question on installation NS-2.29 on Linux Ubuntu

2007-04-13 Thread Timo Reimann
Celina Wang wrote: 2. I have Gcc/G++ 4.1.1 installed. Try the CC and CXX switches I proposed below then. On 4/13/07, Timo Reimann [EMAIL PROTECTED] wrote: Celina Wang wrote: I am installing ns-2.29 in Linux Ubuntu 6.06 version. After modified settings of all of configure files, new

Re: [ns] Making changes in .cc files

2007-04-10 Thread Timo Reimann
Sorry for that last mail, hit the wrong button... manpreet grewal wrote: I am using ns-allinone-2.31 under cygwin on Windows XP. I have made changes in tora.cc file.. Then i executed make command successfully with no errors.. But the changes are not picked by tora.tcl, when i execute ns

Re: [ns] Fwd: facing problem with ns

2007-04-10 Thread Timo Reimann
smita vishwakarma wrote: I have installed ns-2.31 on linux -fedora -5 with gcc-4.1 .it has been installed in following steps as [snip!] same as for otcl,nsnam,ns-2.31,tclcl,xgraph . I am building a new protocol which uses ns underneath for TCP /IP network protocol I creatd very simple

Re: [ns] compilation of .cc file

2007-04-08 Thread Timo Reimann
smita vishwakarma wrote: I am trying to compile my c++ program with tcl but when I am trying to include some NS files it gives lots of error . I have tried with MAKE also but I am unable to compile my file with the c++ and tcl.Kindly , give me suggestion. Since people constantly fail to

Re: [ns] Mapping of the entire Source Tree

2007-04-06 Thread Timo Reimann
Murali P wrote: Is there any documentation available for browsing the entire source code. I know NS Notes is a good place to start off with, but an additional material that gives a brief overview of the location of various stuff in a central location is going to be extremely helpful for

Re: [ns] why RTP header in UDP's sendmsg() ?

2007-04-06 Thread Timo Reimann
Hi Marco, Marco Fiore wrote: my guess is that those infos can be useful for statistics collection. Is the RTP header considered in the UDP header size? If not, it is an invisible header, put there just for informational purposes and not affecting the simulation outcome. You seem to be

Re: [ns] help needed to solve segmentation fault problem

2007-04-06 Thread Timo Reimann
abu shahriar wrote: I am getting segmentation fault when I call send(p,0) to broadcast a packet from my c++ code in ns. Can anyone please help me to find out why this happe? Install gdb or ddd, make sure you compiled ns with debugging symbols, start your debugger and let the program crash.

[ns] how to dynamically attach (UDP) agents to nodes from C++?

2007-04-06 Thread Timo Reimann
Hello, I'm currently in need of extending ns-2 with an application that requires a lot of UDP connections netween nodes. Instead of statically defining these, I thought about setting them up and tearing down dynamically within the C++ code of the application I've started to implement. The

Re: [ns] how to dynamically attach (UDP) agents to nodes from C++?

2007-04-06 Thread Timo Reimann
Timo Reimann wrote: I'm currently in need of extending ns-2 with an application that requires a lot of UDP connections netween nodes. Instead of statically defining these, I thought about setting them up and tearing down dynamically within the C++ code of the application I've started

Re: [ns] how to dynamically attach (UDP) agents to nodes from C++?

2007-04-06 Thread Timo Reimann
Hi Matthias, Matthias Kuhnert wrote: You can call and evaluate tcl code within the c++ part via tcl.evalf()... This combined with some function for the node-id and you should have, what you need. There have been quite a few questions posted before around this topic so you should be lucky

Re: [ns] make target in makefile for ns

2007-04-04 Thread Timo Reimann
smita vishwakarma wrote: I have created ping.o but when I am trying to make it is showing this problem make: *** No rule to make target ` ', needed by `ns'. Stop. how to make target needed by ns? need your help. The base directory of ns-2 doesn't provide any Makefile. Istead, you need to

[ns] why RTP header in UDP's sendmsg() ?

2007-04-04 Thread Timo Reimann
Hiya, I'm not sure if this issue rather belongs to the dev-mailinglist instead of the users' one but since it's just a question and not some sort of contribution I'll try here first: I've looked at the UDP code (in apps/udp.cc) and came to realize that everytime the sendmsg() function is called

Re: [ns] cannot single-step ns-2 with gdb although debugging symbols are included

2007-03-30 Thread Timo Reimann
Timo Reimann wrote: Hi all, in order to get to know better how things in ns-2 work and where to start placing my own implementation, I'd like to use gdb and the tcl debugger and step through the initialisation process of ns-2 one by one. Despite many attempts of doing this, gdb keeps

Re: [ns] cannot single-step ns-2 with gdb although debugging symbols are included

2007-03-30 Thread Timo Reimann
Sorry for messing things up. Timo Reimann wrote: Despite many attempts of doing this, gdb keeps refusing to decent into function calls using the step command but just rushes to the end of the program. I've searched for answers to this problem in the mailing-list archives which basically

[ns] cannot single-step ns-2 with gdb although debugging symbols are included

2007-03-28 Thread Timo Reimann
Hi all, in order to get to know better how things in ns-2 work and where to start placing my own implementation, I'd like to use gdb and the tcl debugger and step through the initialisation process of ns-2 one by one. Despite many attempts of doing this, gdb keeps refusing to decent into

Re: [ns] How to build a simple agent on transport layer ?

2007-03-24 Thread Timo Reimann
kerwin wrote: Hi all ! I am beginner. I want to add a simple agent on transport layer. It only needs sending a packet periodically. Thank for any suggestions. There's a chapter in the ns-2 manual exclusively dedicated to your question. --Timo

Re: [ns] Problem when install ns 2.26 at Red Hat Linux 9!

2007-03-17 Thread Timo Reimann
smthin wrote: I face the problem when i install the ns-allinone-2.26 at red hat linux 9. it said tk 8.3.2 make failed! Exiting.. If anyone know about this,pls let me know how to slove this problem. Virtually nobody will be able to help you if all that you provide is that single line.

Re: [ns] ??? LD_LIBRARY_PATH ???

2007-03-13 Thread Timo Reimann
super.ismiti wrote: In the end of the installation of ns-2, two messages was showed to me: 1. You must put /ns2install/ns-allinone-2.29/otcl-1.11, /ns2install/ns- allinone-2.29/lib, into your LD_LIBRARY_PATH environment variable. If it complains about X libraries, add path to your X

Re: [ns] How to read the current value of a variable ?

2007-03-12 Thread Timo Reimann
Hello Mouli, G.Chandramowli wrote: I am trying to invoke an event at specified time . The event does something based on value of a variable. And the variable keeps on changing during the simulation . When this event is invoked , it reads the initial value of the variable only and not

Re: [ns] installation script doesn't consider /usr/include/X11 for X11 headers

2007-03-08 Thread Timo Reimann
paolalonetti wrote: maybe it's not a problem of NS, but it's a problem of your version of Linux. Try it: - modify your installation including the packets X. If you mean by that I should install the missing X headers: Of course, I did that. I'm not blaming NS for not finding dependent