WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2009-Mar-18 00:19:23

vsantu88
Member
Registered: 2009-Feb-05
Posts: 5

Query in warpmac.c

In the function warpmac_prepEmacForXmit, in warpmac.c, why is the length of the payload taken as (packet->header.length)-4, why not as (packet->header.length).

Thanks

Offline

 

#2 2009-Mar-19 20:02:29

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: Query in warpmac.c

I believe that accounts for the Ethernet checksum. The reference design transmits a full Ethernet frame over-the-air, including its 32-bit checksum (this is sort of pointless, I admit). On the receiving side, the code ignores the received Ethernet checksum when copying the packet into the EMAC. The EMAC will append a new checksum as it transmits the packet over the wire.

Offline

 

Board footer