Changeset 792 in vbox for trunk/src/VBox
- Timestamp:
- Feb 8, 2007 5:45:16 PM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r754 r792 2184 2184 AssertReleaseRC(rc); 2185 2185 2186 rc = pcnetAsyncTransmit(pData); 2186 if (pData->fLinkUp) 2187 rc = pcnetAsyncTransmit(pData); 2187 2188 PDMCritSectLeave(&pData->CritSect); 2188 2189 } -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r786 r792 57 57 /** Slirp critical section. */ 58 58 RTCRITSECT CritSect; 59 /** Link state */ 60 PDMNETWORKLINKSTATE enmLinkState; 59 61 } DRVNAT, *PDRVNAT; 60 62 … … 99 101 AssertReleaseRC(rc); 100 102 101 slirp_input((uint8_t *)pvBuf, cb); 103 Assert(pData->enmLinkState == PDMNETWORKLINKSTATE_UP); 104 if (pData->enmLinkState == PDMNETWORKLINKSTATE_UP) 105 slirp_input((uint8_t *)pvBuf, cb); 102 106 RTCritSectLeave(&pData->CritSect); 103 107 LogFlow(("drvNATSend: end\n")); … … 138 142 int rc = RTCritSectEnter(&pData->CritSect); 139 143 AssertReleaseRC(rc); 144 pData->enmLinkState = enmLinkState; 145 140 146 switch (enmLinkState) 141 147 { … … 439 445 pDrvIns->pDrvHlp->pfnPDMPollerRegister(pDrvIns, drvNATPoller); 440 446 g_pDrv = pData; 447 448 pData->enmLinkState = PDMNETWORKLINKSTATE_UP; 441 449 #if 0 442 450 RTSemEventSignal(g_EventSem);
Note:
See TracChangeset
for help on using the changeset viewer.