Changeset 15092 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 8, 2008 8:01:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15091 r15092 11 11 #include <iprt/assert.h> 12 12 13 #if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) 14 # if !defined(RT_OS_WINDOWS) 15 # define DO_ENGAGE_EVENT1(so, fdset, label) \ 13 #if !defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) || (defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && !defined(RT_OS_WINDOWS)) 14 # define DO_ENGAGE_EVENT1(so, fdset, label) \ 16 15 do { \ 17 FD_SET((so)->s, (fdset)); \16 FD_SET((so)->s, (fdset)); \ 18 17 UPD_NFDS((so)->s); \ 19 18 } while(0) 20 19 21 20 22 # define DO_ENGAGE_EVENT2(so, fdset0, fdset1, label)\21 # define DO_ENGAGE_EVENT2(so, fdset0, fdset1, label) \ 23 22 do { \ 24 23 FD_SET((so)->s, (fdset0)); \ … … 26 25 UPD_NFDS((so)->s); \ 27 26 } while(0) 28 # else /* !RT_OS_WINDOWS*/29 # define DO_ENGAGE_EVENT1(so, fdset0, label)\27 #else /* !defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) || (defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && !defined(RT_OS_WINDOWS) */ 28 # define DO_ENGAGE_EVENT1(so, fdset0, label) \ 30 29 do { \ 31 30 rc = WSAEventSelect((so)->s, VBOX_SOCKET_EVENT, FD_ALL_EVENTS); \ … … 39 38 } while(0); \ 40 39 41 # 42 # endif /* RT_OS_WINDOWS */40 # define DO_ENGAGE_EVENT2(so, fdset0, fdset1, label) DO_ENGAGE_EVENT1((so), (fdset0), label) 41 #endif 43 42 44 43 # define TCP_ENGAGE_EVENT1(so, fdset0) \ … … 49 48 50 49 #define UDP_ENGAGE_EVENT(so, fdset) DO_ENGAGE_EVENT1((so), (fdset), UDP) 51 #endif /* VBOX_WITH_SIMPLIFIED_SLIRP_SYNC */52 50 53 51 static const uint8_t special_ethaddr[6] = {
Note:
See TracChangeset
for help on using the changeset viewer.