I don't have
* if (mredMode == dropTail) {
qParam_[0].edp_.th_min = atoi(argv[4]);
return;
}*
in "void redQueue::config"
I use 2.29
chirs
On 8/13/06, Bie New <[EMAIL PROTECTED]> wrote:
>
>
> Hello there,
>
> I am use ns-2.29, in the file ns-allinone-2.29/ns-2.29/diffserv/dsredq.cc,
> at line 57,
>
> void redQueue::config(int prec, int argc, const char*const* argv) {
> qParam_[prec].qlen = 0;
> qParam_[prec].edp_.th_min = atoi(argv[4]);
> qParam_[prec].edp_.th_max = atoi(argv[5]);
> qParam_[prec].edp_.max_p_inv = 1.0 / atof(argv[6]);
> ...
> ...
> }
>
> but I find there is a different version on Internet,
>
> void redQueue::config(int prec, int argc, const char*const* argv) {
> * if (mredMode == dropTail) {
> qParam_[0].edp_.th_min = atoi(argv[4]);
> return;
> }
> * qParam_[prec].qlen = 0;
> qParam_[prec].edp_.th_min = atoi(argv[4]);
> qParam_[prec].edp_.th_max = atoi(argv[5]);
> qParam_[prec].edp_.max_p_inv = 1.0 / atof(argv[6]);
> ...
> ...
> }
>
>
> Do you have
> * if (mredMode == dropTail) {
> qParam_[0].edp_.th_min = atoi(argv[4]);
> return;
> }* in your dsredq.cc file ? and please mention which version of Ns2
> you use.
>
> Thanks in advance
> **
> **
>