[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] diffserv calc patch



Following on from discussion in

http://www.isi.edu/nsnam/archive/ns-users/webarch/current/msg03297.html

here's the patch to dsredq.cc 1.3 that would seem to be a fix. (I
don't pretend to understand the diffserv code at this point; I'm just
working on the assumption that it's worth patching.)

L.

<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>

$ diff -c3 dsredq.cc dsredq.cc-fixed
*** dsredq.cc	Fri Jul 27 15:40:54 2001
--- dsredq.cc-fixed	Fri Jul 27 15:41:38 2001
***************
*** 274,280 ****
  		
     if (mredMode == wred)
        for (i = 0; i < numPrec; i ++)
! 			qParam_[prec].edv_.v_ave = f;
     else //rio_c, rio_d
        qParam_[prec].edv_.v_ave = f;
  }
--- 274,280 ----
  		
     if (mredMode == wred)
        for (i = 0; i < numPrec; i ++)
! 			qParam_[i].edv_.v_ave = f;
     else //rio_c, rio_d
        qParam_[prec].edv_.v_ave = f;
  }