Update nicdrv.c (#87)
For the new network cards we need also to set mBlkPktHdr.len.
This commit is contained in:
parent
712fac0eb9
commit
cf76625f4c
|
@ -459,6 +459,7 @@ static int ec_outfram_send(ETHERCAT_PKT_DEV * pPktDev, void * buf, int len)
|
||||||
pPacket->mBlkHdr.mLen = len;
|
pPacket->mBlkHdr.mLen = len;
|
||||||
pPacket->mBlkHdr.mFlags |= M_HEADER;
|
pPacket->mBlkHdr.mFlags |= M_HEADER;
|
||||||
pPacket->mBlkHdr.mData = pPacket->pClBlk->clNode.pClBuf;
|
pPacket->mBlkHdr.mData = pPacket->pClBlk->clNode.pClBuf;
|
||||||
|
pPacket->mBlkPktHdr.len = len;
|
||||||
|
|
||||||
netMblkFromBufCopy(pPacket, buf, 0, pPacket->mBlkHdr.mLen, M_DONTWAIT, NULL);
|
netMblkFromBufCopy(pPacket, buf, 0, pPacket->mBlkHdr.mLen, M_DONTWAIT, NULL);
|
||||||
status = muxTkSend(pPktDev->pCookie, pPacket, NULL, htons(ETH_P_ECAT), NULL);
|
status = muxTkSend(pPktDev->pCookie, pPacket, NULL, htons(ETH_P_ECAT), NULL);
|
||||||
|
|
Loading…
Reference in New Issue