Changeset 15638 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Dec 18, 2008 7:58:57 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/libslirp.h
r15266 r15638 54 54 int guest_port); 55 55 56 #if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 56 #if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 57 57 58 # ifdef VBOX_WITH_SLIRP_ICMP59 58 60 59 /* 61 60 * ICMP handle state change 62 61 */ 63 # define VBOX_ICMP_EVENT_INDEX 062 # define VBOX_ICMP_EVENT_INDEX 0 64 63 65 64 /** … … 70 69 * - wakeup 71 70 */ 72 # 71 # define VBOX_WAKEUP_EVENT_INDEX 1 73 72 74 73 /* 75 74 * UDP/TCP socket state change (socket ready to receive, to send, ...) 76 75 */ 77 # 76 # define VBOX_SOCKET_EVENT_INDEX 2 78 77 79 78 /* 80 79 * The number of events for WSAWaitForMultipleEvents(). 81 80 */ 82 # define VBOX_EVENT_COUNT 3 83 84 # else 85 86 # define VBOX_WAKEUP_EVENT_INDEX 0 87 # define VBOX_SOCKET_EVENT_INDEX 1 88 # define VBOX_EVENT_COUNT 2 89 90 # endif 81 # define VBOX_EVENT_COUNT 3 91 82 92 83 HANDLE *slirp_get_events(PNATState pData); -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r15453 r15638 21 21 #ifndef _slirp_state_h_ 22 22 #define _slirp_state_h_ 23 #ifdef VBOX_WITH_SLIRP_ICMP24 23 #include "ip_icmp.h" 25 #endif26 24 27 25 /** Number of DHCP clients supported by NAT. */ … … 120 118 struct socket udb; 121 119 struct socket *udp_last_so; 122 #ifdef VBOX_WITH_SLIRP_ICMP123 120 struct socket icmp_socket; 124 121 struct icmp_storage icmp_msg_head; … … 126 123 void *pvIcmpBuffer; 127 124 size_t szIcmpBuffer; 128 /* Accordin MSDN specification IcmpParseReplies 125 /* Accordin MSDN specification IcmpParseReplies 129 126 * function should be detected in runtime 130 127 */ … … 133 130 HMODULE hmIcmpLibrary; 134 131 # endif 135 #endif136 132 #if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 137 133 # define VBOX_SOCKET_EVENT (pData->phEvents[VBOX_SOCKET_EVENT_INDEX])
Note:
See TracChangeset
for help on using the changeset viewer.