You are not logged in.
Hi Rice,
We want to make two modifications on the Warp Mac. First, we want to fill in our own payload which is from Video trace file. Second, we want the Mac header to carry extra information. Could you kindly point out where we should make these modifications in Warp Mac?
Thanks a lot,
Tan
Offline
The header is defined in warpphy.c (the phyHeader struct typedef). You can modify most of the header any way you want. The only exceptions:
-The fullRate and length fields must be left as-is. The PHY uses these values in hardware.
-The last two bytes must be left unused; they PHY overwrites these with the 16-bit checksum.
The rest of the fields (addresses, type, reserved) can be modified as needed.
For your video payload, is it be delivered via Ethernet? If so, I would recommend using the existing warpmac handling of Ethernet packets, and add your custom code to a dataFromNetworkLayer callback (just like nomac and csmamac).
Offline