[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] The default Values
The header was changed in the tcp.h, and the default values were
changed in /tcl/lib/ns-default.tcl
I have added two more fields in the header and have set the value as 4
for one of them and 5 for the other. But still the printed value is 0
and 0. The printf ststement is given in tcp-sink.cc in the following
code..
void TcpSink::ack(Packet* opkt)
I am writing a simple printf statemnet to print the variables.. DO I
need to meke the changes else where too.. I am trying to bind the
variables.. I am not sure wether I am doing it in correct way or
not..What shall I read to do it correctly.
Thanks..
Vakul
--- Debojyoti Dutta <ddutta@ISI.EDU> wrote:
> Could yo utell us exactly where you have made the changes ? If you
> try to
> print stuff before the initializations and the bindings, you might
> have
> this problem
>
> Debo
>
> On Mon, 28 May 2001, Vakul Goel wrote:
>
> > Hello ns users,
> >
> > I am working on changing the TCP code written inside the ns kernel.
> To
> > begin with I added some variables in the TCP header(in tcp.h), and
> have
> > put the default values for those variables.
> >
> > Now when I am trying to print the values of these variables at
> another
> > file, it is printing the values as 0, and not as the default, which
> I
> > had supplied in the /tcl/lib/ns-default.tcl
> >
> > I thanks you people for providing the earlier help, and very much
> > appriciate any help regarding this problem..
> >
> > Thanks again,
> >
> > Vakul
=====
Vakul Goel
911 Imhoff, # 637
Norman, OK 73072, USA
Phone: 405-325-9295
*********************************************************
Have A Nice Day....
*********************************************************
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/