Skip to content

Commit

Permalink
Update nicdrv.c (OpenEtherCATsociety#87)
Browse files Browse the repository at this point in the history
For the new network cards we need also to set mBlkPktHdr.len.
  • Loading branch information
HolgerNie authored and nakarlsson committed Mar 14, 2017
1 parent 712fac0 commit cf76625
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oshw/vxworks/nicdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cf76625

Please sign in to comment.