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

[ns] DiffServ Nortel - Error in dsred.cc file



	To Peter and ns-users.
        I'm learning how you implement the redQueue class.
	Trying understand your code I find one error in the final of the method
calcAvg(...).

        The original code is:
        
        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;


In the third line I think that is the error because the indice "i" is
never use in the qpam_ variable.

The solution is change the indice prec for i or, what is the solution?

Thanks in adavance.

                Alex.



-- 

   __________________________________________________
   |				   	            |
   | Alex Marcelo Samaniego Guillen - M.Sc. Student |
   | Universidade Estadual de Campinas - UNICAMP    |
   | Departamento de Engenharia de Computacao	    |
   | e Automacao Industrial - DCA		    |
   --------------------------------------------------

    "La igualdad de la riqueza debe consistir en que ning�n ciudadano 
     sea tan opulento que pueda comprar a otro, ni ninguno sea tan   
     pobre que se vea necesitado de venderse. - Rousseau"