Changeset 22192 in vbox
- Timestamp:
- Aug 12, 2009 4:18:32 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r22160 r22192 61 61 */ 62 62 #define VBOX_NAT_DELAY_HACK 63 #if 0 64 #define SLIRP_CAN_SAND_IN_PDM 1 65 #define SLIRP_FLUSH_DEV 1 66 #endif 63 67 64 68 #define GET_EXTRADATA(pthis, node, name, rc, type, type_name, var) \ … … 537 541 int slirp_can_output(void *pvUser) 538 542 { 543 #ifdef SLIRP_CAN_SAND_IN_PDM 539 544 int status = 0; 540 545 int rc = 0; … … 552 557 } 553 558 return 0; 554 } 555 559 #else 560 PDRVNAT pThis = (PDRVNAT)pvUser; 561 return (RT_SUCCESS(pThis->pPort->pfnWaitReceiveAvail(pThis->pPort, 0))? 1 : 0); 562 #endif 563 } 564 565 void slirp_flush_dev(void *pvUser) 566 { 567 #ifdef SLIRP_FLUSH_DEV 568 PDRVNAT pThis = (PDRVNAT)pvUser; 569 /*@todo: idealy should be done in other thread */ 570 PDMQueueFlush(pThis->pSendQueue); 571 #endif 572 } 556 573 557 574 /** -
trunk/src/VBox/Devices/Network/slirp/if.c
r18902 r22192 226 226 if_encap(pData, ETH_P_IP, ifm); 227 227 228 if (!if_queued) 228 if (!if_queued) 229 { 230 slirp_flush_dev(pData->pvUser); 229 231 return; 230 } 231 } 232 } 233 } 234 } -
trunk/src/VBox/Devices/Network/slirp/libslirp.h
r22020 r22192 113 113 */ 114 114 unsigned int slirp_get_timeout_ms(PNATState pData); 115 void slirp_flush_dev(void *pvUser); 115 116 116 117 # ifndef RT_OS_WINDOWS
Note:
See TracChangeset
for help on using the changeset viewer.