Hi Marcello I have created "newp.h","newp.cc"and compiled it with MAKE .After that I created tcl file newping.tcl and add it in as "Agent/newp" it is showing error as follows.
invalid command name "Agent/newp" while executing "Agent/newp instproc recv {from rtt} { $self instvar node_ puts "node [$node_ id] received ping answer from \ $from with round-trip-tim..." (file "newping.tcl" line 27) please help me ,my deadline is coming :-))))) On 4/14/07, Marcello Caleffi <[EMAIL PROTECTED]> wrote: > > Hi, > have you read this tutorial " > http://masimum.dif.um.es/nsrt-howto/pdf/nsrt-howto.pdf"? > If you follow it, you should reach to implement a new protocol. > > PS in your mail you forgot to detail the error :-))) > > Good work > > Il giorno 10/apr/07, alle ore 11:19, smita vishwakarma ha scritto: > > hi, > > I have installed ns-2.31 on linux -fedora -5 with gcc-4.1. It has been > installed using the following steps. > > 1. su > 2. cd > 3. wget http://prdownloads.sourceforge.net/tcl/tcl8.4.14-src.tar.gz > 4. cd /usr/share/ > 5. tar -zxvf /root/tcl8.4.14-src.tar.gz > 6. cd /usr/share/tcl8.4.14/unix/ > 7. ./configure > 8. make > 9. make install > 10. rm -f /root/tcl8.4.14-src.tar.gz > We repeated the steps from 3 to 10 for otcl, nsnam, ns-2.31, tclcl,xgraph > . > > I am simulating a new protocol which uses NS simulator underneath for > simulating TCP /IP. I have creatd a very simple file to begin with which has > the following structure. > > #include"ping.h" > static class PingHeaderClass : public PacketHeaderClass > { > public: > PingHeaderClass():PacketHeaderClass("PacketHeader/Ping"sizeof(hdr_ping)){} > }class_pinghdr; > > ........... > > I have made following changes in makefile.in.. > > OBJ_CC=........... > ....................... > ............................ > routing/alloc- address.o routing/address.o > ping.o \ > ....................... > > kindly advice me where i m going wrong. I m struggling on this for past > one month . Please reply back asap with solution.. > > Best Regards, > > Smita Viswakarma > > > > On 4/5/07, Marcello Caleffi <[EMAIL PROTECTED]> wrote: > > > > Hi, > > you didn't give me enough infos. > > Maybe Oldsim class doen't exist? > > > > Il giorno 03/apr/07, alle ore 21:28, smita vishwakarma ha scritto: > > > > Hi, > > > > Thanks a lot..... I have installed successfully ns-2.31 in fedora-5 > > environment . But I am finding one problem with Tcl that is "error when > > calling class Oldsim :example1.tcl".Why is it so? > > > > Kindly, give me suggestion. > > > > Thanks & Regards, > > Smita Vishwakarma > > C-DAC > > INDIA > > > > On 4/4/07, Marcello Caleffi < [EMAIL PROTECTED] > wrote: > > > > > > Try to update your packages as shown here: > > > http://wpage.unina.it/marcello.caleffi/ > > > > > > Best regards. > > > > > > ------------------------------ > > > > > > Marcello Caleffi, Ph.D. student > > > Department of Electronic and Telecommunication Engineering > > > University of Naples "Federico II" > > > Via Claudio 21 > > > 80125 Naples ITALY > > > > > > > > > > > > > > > > > Hi, > > > > > > > > I have downloaded ns-2.30 with Red hat -9 and gcc compiler 3.2.2 . > > > > I am > > > > getting compilation error when I am trying to compile any .cc file > > > of > > > > ns.Kindly,suggest me as soon as possible. > > > > > > > > Thanks & Regards, > > > > Smita > > > > > > > > > > > > > Marcello Caleffi, Ph.D. student > > Department of Electronic and Telecommunication Engineering > > University of Naples "Federico II" > > Via Claudio 21 > > 80125 Naples ITALY > > > > > > > > Marcello Caleffi, Ph.D. student > Department of Electronic and Telecommunication Engineering > University of Naples "Federico II" > Via Claudio 21 > 80125 Naples ITALY > > >