- Timestamp:
- Dec 9, 2008 10:15:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15208 r15209 34 34 } while (0) 35 35 # else /* !VBOX_WITH_SLIRP_ICMP */ 36 # define ICMP_ENGAGE_EVENT(so, fdset1, fdset2) \ 37 /* no ICMP socket */ 36 # define ICMP_ENGAGE_EVENT(so, fdset1, fdset2) do {} while (0) 38 37 # endif /* !VBOX_WITH_SLIRP_ICMP */ 39 38 … … 44 43 * So no call to WSAEventSelect necessary. 45 44 */ 46 # define ICMP_ENGAGE_EVENT(so, fdset1, fdset2) \ 47 /* ignore */ 48 49 # define DO_ENGAGE_EVENT1(so, fdset1, label) \ 50 do { \ 51 rc = WSAEventSelect((so)->s, VBOX_SOCKET_EVENT, FD_ALL_EVENTS); \ 52 if (rc == SOCKET_ERROR) \ 53 { \ 54 /* This should not happen */ \ 55 error = WSAGetLastError(); \ 56 LogRel(("WSAEventSelector (" #label ") error %d (so=%x, socket=%s, event=%x)\n", \ 57 error, (so), (so)->s, VBOX_SOCKET_EVENT)); \ 58 } \ 45 # define ICMP_ENGAGE_EVENT(so, fdset1, fdset2) do {} while(0) 46 47 # define DO_ENGAGE_EVENT1(so, fdset1, label) \ 48 do { \ 49 rc = WSAEventSelect((so)->s, VBOX_SOCKET_EVENT, FD_ALL_EVENTS); \ 50 if (rc == SOCKET_ERROR) \ 51 { \ 52 /* This should not happen */ \ 53 error = WSAGetLastError(); \ 54 LogRel(("WSAEventSelector (" #label ") error %d (so=%x, socket=%s, event=%x)\n", \ 55 error, (so), (so)->s, VBOX_SOCKET_EVENT)); \ 56 } \ 59 57 } while(0) 60 58 … … 73 71 DO_ENGAGE_EVENT1((so), (fdset), UDP) 74 72 75 static const uint8_t special_ethaddr[6] = { 73 static const uint8_t special_ethaddr[6] = 74 { 76 75 0x52, 0x54, 0x00, 0x12, 0x35, 0x00 77 76 };
Note:
See TracChangeset
for help on using the changeset viewer.