Hi Again guys,

Happened to be that i can just tap it from the recvACK function and link it
to the mobilenode class. This would be sufficient for my requirements. 

Just in case if someone would like to obtain the MAC layer ACKs for the data
packet that is sent... you can use the following way in the recvACK function
in mac-802_11.cc file.


...
...

void
Mac802_11::recvACK(Packet *p)
{
    struct hdr_cmn * ch = HDR_CMN(p); //the MAC Ack packet
    struct hdr_cmn * chData = HDR_CMN(pktTx_); //the corresponding DATA
packet for the above MAC Ack packet

   if(chData->ptype() == PT_CBR) //UDP CBR DATA packet
           if(ch->ptype() == PT_MAC)
                    printf("MAC ACK for Packet (UID: %d) Received at Node
%d! \n",ch->uid(), addr());

//Hope this helps for those whom might need it.

...
...
} //end of recvACK






KShankar wrote:
> 
> Hi Everyone,
> 
> For each data packet that is received, the received node will send a MAC
> layer ACK packet. Is it possible that i tap this reply (MAC) at the
> routing layer itself? If yes, can someone shed some lights on how to
> proceed? 
> 
> Please advice.
> 
> Regards,
> 
> Shankar
> 


-----
Regards,

Shankar
-- 
View this message in context: 
http://old.nabble.com/Tapping-MAC-Ack-at-Routing-Layer-tp31754025p31756277.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to