Changeset 6941 in vbox for trunk/src/VBox/Devices/Network/DrvTAP.cpp
- Timestamp:
- Feb 14, 2008 12:16:17 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28106
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvTAP.cpp
r6931 r6941 81 81 * Structures and Typedefs * 82 82 *******************************************************************************/ 83 typedef enum ASYNCSTATE84 {85 //ASYNCSTATE_SUSPENDED = 1,86 ASYNCSTATE_RUNNING,87 ASYNCSTATE_TERMINATE88 } ASYNCSTATE;89 90 83 /** 91 84 * Block driver instance data. … … 429 422 } 430 423 424 431 425 rc = RTSemEventDestroy(pData->EventOutOfSpace); 432 426 AssertRC(rc); 427 pData->EventOutOfSpace = NIL_RTSEMEVENT; 433 428 434 429 LogFlow(("drvTAPAsyncIoThread: returns %Vrc\n", VINF_SUCCESS)); … … 449 444 PDRVTAP pData = PDMINS2DATA(pDrvIns, PDRVTAP); 450 445 451 /* Ensure that it does not spin in the CanReceive loop */ 446 /* Ensure that it does not spin in the CanReceive loop. 447 (May assert in IPRT if we're really unlucky.) */ 452 448 if (ASMAtomicXchgU32(&pData->fOutOfSpace, false)) 453 449 RTSemEventSignal(pData->EventOutOfSpace); … … 548 544 szMacAddress[sizeof(szMacAddress) - 1] = 0; 549 545 550 RTStrPrintf(szCommand, sizeof(szCommand), "%s %s %s", pData->pszSetupApplication, 546 RTStrPrintf(szCommand, sizeof(szCommand), "%s %s %s", pData->pszSetupApplication, 551 547 szMacAddress, pData->fStatic ? pData->pszDeviceName : ""); 552 548 #else 553 RTStrPrintf(szCommand, sizeof(szCommand), "%s %s", pData->pszSetupApplication, 549 RTStrPrintf(szCommand, sizeof(szCommand), "%s %s", pData->pszSetupApplication, 554 550 pData->fStatic ? pData->pszDeviceName : ""); 555 551 #endif … … 710 706 else 711 707 rc = PDMDrvHlpVMSetError(pData->pDrvIns, VERR_HOSTIF_INIT_FAILED, RT_SRC_POS, 712 N_("Failed to obtain VNIC info")); 708 N_("Failed to obtain VNIC info")); 713 709 dlpi_close(pData->pDeviceHandle); 714 710 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.