42c42
< #define MAX_PREC 3
---
> #define MAX_PREC 3	
44,72c44
< 
< /*
<         For BIO algorithm 8 different sub-algorithms are possible
<         Decrement pmq if
<                 qp = 0                          (single)
<                 sum(qi) [i=0..p] = 0            (all)
<         Increment pmq if
<                 qp > maxthp                     (single)
<                 sum(qi) [i=0..p] > maxthp       (all)
<         Mark priority p packet if
<                 sum(qi) [i=p+1..N] = 0          (idle)
<                 sum(qi) [i=0..p] > maxthp       (threshold)
< 
<         Sorting all possible choices in decrement, increment, mark order we get following 8 alternatives
<  */
< enum mredModeType {rio_c, rio_d, wred, dropTail, bio_ssi, bio_sai, bio_asi, bio_aai, bio_sst, bio_sat, bio_ast, bio_aat};
< 
< struct bioParam {
<         float increment_,
<               decrement_;
<         float ifreeze_time_,
<               dfreeze_time_;
< };
< 
< struct bioVar {
<         float ihold_time_,
<               dhold_time_;
<         float pmark_;
< };
---
> enum mredModeType {rio_c, rio_d, wred, dropTail};
75c47
< //   This structure specifies the parameters needed to be maintained for
---
> //   This structure specifies the parameters needed to be maintained for 
83,85d54
<   bioParam bp_;         // BIO parameters
<   bioVar bv_;           // BIO variables
<   float red_pmark_;
92d60
<   long bytes;
98c66
<   void config(int prec, int argc, const char*const* argv);
---
>   void config(int prec, int argc, const char*const* argv);	
108c76
<   void updateREDStateVar(int prec);
---
>   void updateREDStateVar(int prec);	
118c86
<   double getWeightedLength_v(int prec);
---
>   double getWeightedLength_v(int prec); 
120c88
<   int getRealLength_v(int prec);
---
>   int getRealLength_v(int prec); 
125,129c93
< 
<   void increment_pm(int prec);
<   void decrement_pm(int prec);
<   int bio_boundary_check(int prec);
<   float getMarkP(int prec);
---
>   
132c96
<   PacketQueue *q_;
---
>   PacketQueue *q_;		
136,137c100,101
<   void calcAvg(int prec, int m);
< 
---
>   void calcAvg(int prec, int m); 
>   
