VirtualBox

Changeset 15682 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Dec 19, 2008 11:46:38 AM (16 years ago)
Author:
vboxsync
Message:

slirp: tcp/ip port-forwarding fix

File:
1 edited

Legend:

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

    r15672 r15682  
    3030
    3131# define DO_CHECK_FD_SET(so, events, fdset) (FD_ISSET((so)->s, (fdset)))
     32
     33# define DO_WIN_CHECK_FD_SET(so, events, fdset ) 0 /* specific for Windows Winsock API */
    3234
    3335# define ICMP_ENGAGE_EVENT(so, fdset)               \
     
    7072    }
    7173
     74# define acceptds_win FD_ACCEPT
     75# define acceptds_win_bit FD_ACCEPT_BIT
     76
    7277# define readfds_win FD_READ
    7378# define readfds_win_bit FD_READ_BIT
     
    8287    (((events).lNetworkEvents & fdset ## _win) && ((events).iErrorCode[fdset ## _win_bit] == 0))
    8388
     89# define DO_WIN_CHECK_FD_SET(so, events, fdset ) DO_CHECK_FD_SET((so), (events), (fdset))
    8490
    8591#endif /* defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) */
     
    102108#define CHECK_FD_SET(so, events, set)           \
    103109    (DO_CHECK_FD_SET((so), (events), set))
     110
     111#define WIN_CHECK_FD_SET(so, events, set)           \
     112    (DO_WIN_CHECK_FD_SET((so), (events), set))
    104113
    105114/*
     
    748757             * Check sockets for reading
    749758             */
    750             else if (CHECK_FD_SET(so, NetworkEvents, readfds))
     759            else if (CHECK_FD_SET(so, NetworkEvents, readfds)
     760             || WIN_CHECK_FD_SET(so, NetworkEvents, acceptds))
    751761            {
    752762                /*
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