next up previous
Next: Commands at a glance Up: Link Layer(LL) Previous: Parameters

Modifications for use outside GPRS/GSM

To use this acked/fragmented LL for a non-GPRS/GSM mac layer, in the function sendACK() in  ns/ll.cc , change the variable "dh" according to the mac layer being used

      void LL::sendACK(Packet* p)
        {
                ...
            hdr_mac_gprs *dh = HDR_MAC_GPRS(p);
                ...
         }

For example, to use with mac802_11, replace the shown line with:

hdr_mac802_11 *dh =HDR_MAC802_11(p);



Richa Jain (96D07007)
Tue Jul 24 22:29:53 IST 2001