Update nicdrv.c (#87)

For the new network cards we need also to set mBlkPktHdr.len.
This commit is contained in:
HolgerNie 2017-03-14 14:47:13 +01:00 committed by nakarlsson
parent 712fac0eb9
commit cf76625f4c
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ static int ec_outfram_send(ETHERCAT_PKT_DEV * pPktDev, void * buf, int len)
pPacket->mBlkHdr.mLen = len;
pPacket->mBlkHdr.mFlags |= M_HEADER;
pPacket->mBlkHdr.mData = pPacket->pClBlk->clNode.pClBuf;
pPacket->mBlkPktHdr.len = len;
netMblkFromBufCopy(pPacket, buf, 0, pPacket->mBlkHdr.mLen, M_DONTWAIT, NULL);
status = muxTkSend(pPktDev->pCookie, pPacket, NULL, htons(ETH_P_ECAT), NULL);