[ns] getting queue length problem
k s
smythek at u.washington.edu
Sat Jun 10 22:06:12 PDT 2006
Hi ,
I saw a similar issue on
http://mailman.isi.edu/pipermail/ns-users/2003-January/028599.html
for accessing the length of the ifq in mac. I did their fix (see the post
above) but it still doesn't work for me. I still get a seg fault when the
program comes to
int queueLen= ll_->ifq()->length();
It's in a couple of "if" statement for null pointers...
if (ll_!=NULL){ //if the ll_ pointer is set
if(ll_->ifq()!=NULL){ //if the ll_->ifq_ pointer is
set
int queueLen= ll_->ifq()->length();
}
}
So that can't be the problem... I'm stuck!
Can anyone help me out?
Kathy
More information about the Ns-users
mailing list