Changeset 14202 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Nov 14, 2008 9:17:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r14199 r14202 197 197 #ifndef VBOX_WITH_SIMPLEFIED_SLIRP_SYNC 198 198 slirp_link_up(pThis->pNATState); 199 #else 199 #else /* VBOX_WITH_SIMPLEFIED_SLIRP_SYNC */ 200 200 # ifndef RT_OS_WINDOWS 201 201 rc = RTFileWrite(pThis->PipeWrite, "2", 2, NULL); … … 204 204 WSASetEvent(pThis->hNetEvent); 205 205 # endif 206 #endif 206 #endif /* VBOX_WITH_SIMPLEFIED_SLIRP_SYNC */ 207 207 break; 208 208 … … 212 212 #ifndef VBOX_WITH_SIMPLEFIED_SLIRP_SYNC 213 213 slirp_link_down(pThis->pNATState); 214 #else 214 #else /* VBOX_WITH_SIMPLEFIED_SLIRP_SYNC */ 215 215 # ifndef RT_OS_WINDOWS 216 216 rc = RTFileWrite(pThis->PipeWrite, "2", 2, NULL); … … 220 220 RTSemEventWait(pThis->semLinkMutex, RT_INDEFINITE_WAIT); 221 221 # endif 222 #endif 222 #endif /* VBOX_WITH_SIMPLEFIED_SLIRP_SYNC */ 223 223 break; 224 224 … … 353 353 RTSemEventSignal(pThis->semSndMutex); 354 354 } 355 if ((event - WSA_WAIT_EVENT_0) == VBOX_NET_EVENT_INDEX) { 356 switch(pThis->enmLinkState) { 357 case PDMNETWORKLINKSTATE_UP: 358 slirp_link_up(pThis->pNATState); 355 if ((event - WSA_WAIT_EVENT_0) == VBOX_NET_EVENT_INDEX) 356 { 357 switch(pThis->enmLinkState) 358 { 359 case PDMNETWORKLINKSTATE_UP: 360 slirp_link_up(pThis->pNATState); 359 361 break; 360 361 362 362 case PDMNETWORKLINKSTATE_DOWN: 363 case PDMNETWORKLINKSTATE_DOWN_RESUME: 364 slirp_link_down(pThis->pNATState); 363 365 break; 364 365 366 367 366 } 367 WSAResetEvent(pThis->hNetEvent); 368 RTSemEventSignal(pThis->semLinkMutex); 369 break; 368 370 } 369 371 # endif /* RT_OS_WINDOWS */
Note:
See TracChangeset
for help on using the changeset viewer.