Hi, anyone as tested this method?
I've insert following code in mac-802_11.cc in recvDATA() but i've
segmentation fault problem...why if i test if the pointer is non-null?
int pkt_in_q = 0;
//Thesis
if ( ((LL *)uptarget_)-ifq()){
//code if non-null
:10 PM
Subject: Re: [ns] accessing queue length in 802.11 MAC
Dear guys,
I tried to access queue length in MAC. So I wrote
int pkt_num = ((LL *)uptarget_)-ifq()-length();
When I run the simulation us gdb, segmentation fault occurs. I
shows
that
Program received signal
de Dezembro de 2006 14:56
To: ghada; ns-users@ISI.EDU
Subject: Re: [ns] accessing queue length in 802.11 MAC
Dear ghada,
Thank you very much for your reply. But how to check if the queue is
null or not? Should I do it in the queue.cc peoriodically and transfer
the state to mac? Or check