[ns] accessing ifq from ll.cc

Rafiq Shaikh rfq_2002 at yahoo.com
Tue Oct 7 01:24:26 PDT 2008


Hi,

I did search thru the archives of this mailing list but could not find 
resolution to my problem so sending this email.

In my ad-hoc wireless simulation I am using Queue/DropTail/PriQueue.
>From LL I am trying to access the ifq so that I can lookup for a particular type of packet in the ifq.

Before I can write any code to lookup in ifq I wanted to see if the ifq_
has a valid value in LL.

In function void LL::recv(Packet* p, Handler* /*h*/) 
I added below statement to print the value of ifq_.
printf("ifq = %d\n", (unsigned int)ifq());
This always prints value 0. 

Does it mean that the LL does not have a corresponding ifq?
Interesting fact is that the simulation completes and I could see that
the data packets were sent out by that node. 

Is this right way to access ifq from within LL? 
Any idea on how to access ifq from within ll.cc?

I would appreciate your help on this one.

Regards,
-Rafiq.



      



More information about the Ns-users mailing list