VirtualBox

Changeset 38170 in vbox for trunk/src


Ignore:
Timestamp:
Jul 26, 2011 4:50:31 AM (13 years ago)
Author:
vboxsync
Message:

NAT: processing FD_CONNECT on Windows hosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r38111 r38170  
    945945            Log2(("connecting %R[natsock] engaged\n",so));
    946946            STAM_COUNTER_INC(&pData->StatTCPHot);
    947 #ifndef NAT_CONNECT_EXPERIMENT
     947#ifdef RT_OS_WINDOWS
     948            WIN_TCP_ENGAGE_EVENT2(so, writefds, connectfds);
     949#else
    948950            TCP_ENGAGE_EVENT1(so, writefds);
    949 #else
    950 # ifdef RT_OS_WINDOWS
    951             WIN_TCP_ENGAGE_EVENT2(so, writefds, connectfds);
    952 # else
    953             TCP_ENGAGE_EVENT1(so, writefds);
    954 # endif
    955951#endif
    956952        }
     
    973969        if (   CONN_CANFRCV(so)
    974970            && (SBUF_LEN(&so->so_snd) < (SBUF_SIZE(&so->so_snd)/2))
    975 #ifdef NAT_CONNECT_EXPERIMENT
     971#ifdef RT_OS_WINDOWS
    976972            && !(so->so_state & SS_ISFCONNECTING)
    977973#endif
     
    12301226            &&  !CHECK_FD_SET(so, NetworkEvents, closefds)
    12311227#endif
    1232 #ifdef NAT_CONNECT_EXPERIMENT
    1233 # ifdef RT_OS_WINDOWS
     1228#ifdef RT_OS_WINDOWS
    12341229            /**
    12351230             * In some cases FD_CLOSE comes with FD_OOB, that confuse tcp processing.
    12361231             */
    12371232            && !WIN_CHECK_FD_SET(so, NetworkEvents, closefds)
    1238 # endif
    12391233#endif
    12401234        )
     
    12501244        {
    12511245
    1252 #ifdef DEBUG_vvl
    1253             Assert(((so->so_state & SS_ISFCONNECTING) == 0));
    1254 #endif
    1255 #ifdef NAT_CONNECT_EXPERIMENT
     1246#ifdef RT_OS_WINDOWS
    12561247            if (WIN_CHECK_FD_SET(so, NetworkEvents, connectfds))
    12571248            {
     
    13141305         */
    13151306        if (    CHECK_FD_SET(so, NetworkEvents, writefds)
    1316 #if defined(NAT_CONNECT_EXPERIMENT)
     1307#ifdef RT_OS_WINDOWS
    13171308            ||  WIN_CHECK_FD_SET(so, NetworkEvents, connectfds)
    13181309#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette