Changeset 594 in vbox
- Timestamp:
- Feb 4, 2007 2:44:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r592 r594 1788 1788 * Send packet to the network driver. 1789 1789 */ 1790 DECLCALLBACK(void) pcnetSendAsyncPacket(PCNetState *pData, const void *pvBuf, unsigned cb)1791 { 1790 static DECLCALLBACK(void) pcnetSendAsyncPacket(PCNetState *pData, const void *pvBuf, unsigned cb) 1791 { 1792 1792 Assert(pData && pData->pDrv && pData->pDrv->pfnSend); 1793 1793 … … 1830 1830 1831 1831 /** @note we make a copy here as we don't wish to have to enter the critical section in the async send thread during the lengthy send process. */ 1832 uint8_t*pPacket = RTMemTmpAlloc(pData->aFrames[i].cb);1832 void *pPacket = RTMemTmpAlloc(pData->aFrames[i].cb); 1833 1833 memcpy(pPacket, pv, pData->aFrames[i].cb); 1834 rc = RTReqCallEx(pData->pSendQueue, NULL, 0, RTREQFLAGS_NO_WAIT ,pcnetSendAsyncPacket, pData, pPacket, (unsigned)pData->aFrames[i].cb);1834 rc = RTReqCallEx(pData->pSendQueue, NULL, 0, RTREQFLAGS_NO_WAIT | RTREQFLAGS_VOID, (PFNRT)pcnetSendAsyncPacket, pData, pPacket, (unsigned)pData->aFrames[i].cb); 1835 1835 AssertRC(rc); 1836 1836 #else
Note:
See TracChangeset
for help on using the changeset viewer.