Dr. Sayenko,

Can you please explain to me how to apply the .diff files to the
appropriate .h or .cc files?

As I understand, the file diffserv_wfq.diff  is for dsred.cc and the
file dsred.diff is for dsred.h. Is this correct? I haven't used the diff
tool with .diff files before. 

Thank you for your help.

Mostafa Dahshan

-----Original Message-----
From: Alexander Sayenko [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 02, 2006 2:01 AM
To: Dahshan, Mostafa H.; ns-users@ISI.EDU
Subject: Re: [ns] Problem compiling ns-2.29 with WFQ mod for Nortel
Diffserv

Hi

Use the following implementation of WFQ for DiffServ, it works
http://www.cc.jyu.fi/~sayenko/src/dsred.diff

Sincerely,
Alexander Sayenko (PhD)
Assistant
Telecommunication laboratory, MIT department
University of Jyvaskyla, Finland


>
> Hello,
>
> I need to use WFQ scheduler for Diffserv simulation. The only module
available seems to be the "WFQ Scheduler for Nortel DiffServ" available
at
http://nsnam.isi.edu/nsnam/index.php/Contributed_Code
http://www.tik.ee.ethz.ch/~fiedler/provisioning.html. That module seems
to
have outdated versions of dsred.cc and dsred.h. When I overwrite the
files
that come with the ns-allinone distribution package, I get compilation
errors like this:
>
> diffserv/dsred.h: In constructor `dsREDQueue::dsREDQueue()':
> diffserv/dsred.h:219: warning: `dsREDQueue::link_' will be initialized
after
> diffserv/dsred.h:180: warning:   `WFQdsHandler dsREDQueue::wfq_hand'
> diffserv/dsred.cc:87: warning:   when initialized here
> diffserv/dsred.cc: In member function `virtual int
dsREDQueue::command(int, const char* const*)':
> diffserv/dsred.cc:799: error: no matching function for call to
`redQueue::config(int, const char* const*&)'
> diffserv/dsredq.h:66: note: candidates are: void redQueue::config(int,
int, const char* const*)
> make: *** [diffserv/dsred.o] Error 1
> Ns make failed!
> See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
>
>
> I have tried to import the modifications from the dsred.h and dsred.cc
into the ones that come with the current dist but I was never successful
to
get it to compile.
>
> I would appreciate any help.
>
> Thank you.
>
> Mostafa Dahshan
>

Reply via email to