[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] new protocol
Have you added yr tcl files (where you define yr agent) to OTcl scripts'
list in Makefile.in? You need to include them in ns-lib.tcl too.
--Padma.
On Mon, 12 Mar 2001, Ahmad.MohdNoor wrote:
> hi folks,
>
> I'm a newbie in Ns and i intend to simulate a gnutella-type network on
> NS2(i use the version ns-2.1b7).I've followed step by step the tutorial of
> Marc Greis pertaining to the implementation of new protocol:
> -declaration of the packet header (gnutella.h)
> -linkage between c++ and tcl codes in gnutella.cc
> -definition of the gnutella packet in packet.h
> -declaration of the default values in tcl/lib/ns-default.tcl
> -adding new packet header type in tcl/lib/ns-packet.tcl(i've
> referred to ns manual chapter 12.1.1 )
> -adding gnutella.o in the Makefile.in
> Having accomplished these , i managed to recompile the ns (make depend +
> make) without any particular error message.
> But when i tried to run a gnutella tcl script (gnutella.tcl) , i got an
> error message telling that "Agent/Gnutella" was invalid.
> I think that the problem is a missing linkage somewhere ,so if anybody is
> used to implementing a new protocol using ns2-1b7 please help me.
>
>
>
>
--
------------------------------------------------
Be true to your work, your word, and your friend.
--Thoreau
Padmaparna Haldar