Changeset 15201 in vbox for trunk/src/VBox/Devices/Network/slirp/slirp.c
- Timestamp:
- Dec 9, 2008 8:35:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15194 r15201 12 12 13 13 #if !defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) || !defined(RT_OS_WINDOWS) 14 15 # ifdef VBOX_WITH_SLIRP_ICMP 16 # define DO_ENGAGE_EVENT0(so, fdset, label) DO_ENGAGE_EVENT1((so), (fdset), label) 17 # else /* VBOX_WITH_SLIRP_ICMP */ 18 # define DO_ENGAGE_EVENT0(so, fdset, label) /* ignore */ 19 #endif /* !VBOX_WITH_SLIRP_ICMP */ 20 14 21 # define DO_ENGAGE_EVENT1(so, fdset, label) \ 15 22 do { \ … … 26 33 } while(0) 27 34 #else /* defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) */ 35 # define DO_ENGAGE_EVENT0(so, fdset, label) /* ignore */ 36 28 37 # define DO_ENGAGE_EVENT1(so, fdset0, label) \ 29 38 do { \ … … 49 58 #define UDP_ENGAGE_EVENT(so, fdset) \ 50 59 DO_ENGAGE_EVENT1((so), (fdset), UDP) 60 61 #define ICMP_ENGAGE_EVENT(so, fdset) \ 62 DO_ENGAGE_EVENT0((so), (fdset), UDP) 51 63 52 64 static const uint8_t special_ethaddr[6] = { … … 583 595 } 584 596 } 597 ICMP_ENGAGE_EVENT(&pData->icmp_socket, readfds); 598 ICMP_ENGAGE_EVENT(&pData->icmp_socket, writefds); 585 599 } 586 600 … … 867 881 } 868 882 } 869 #if defined(VBOX_WITH_SLIRP_ICMP) && defined(RT_OS_WINDOWS) 883 #if defined(VBOX_WITH_SLIRP_ICMP) 884 # if defined(RT_OS_WINDOWS) 870 885 sorecvfrom(pData, &pData->icmp_socket); 871 #endif 886 # else 887 if (so->s != -1 && FD_ISSET(so->s, readfds)) 888 { 889 sorecvfrom(pData, &pData->icmp_socket); 890 } 891 # endif 892 #endif 872 893 } 873 894
Note:
See TracChangeset
for help on using the changeset viewer.