- Timestamp:
- Feb 9, 2009 12:04:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r16573 r16578 54 54 && ((so)->so_poll_index <= ndfs) \ 55 55 && ((so)->s == polls[so->so_poll_index].fd) \ 56 && (polls[(so)->so_poll_index].revents \ 57 && N_(fdset ## _poll))) 56 && (polls[(so)->so_poll_index].revents & N_(fdset ## _poll))) 58 57 # endif /* VBOX_WITH_SIMPLIFIED_SLIRP_SYNC */ 59 58 … … 70 69 # define xfds_poll (POLLPRI) 71 70 # endif 71 # define rderr_poll (POLLERR) 72 # define rdhup_poll (POLLHUP) 73 # define nval_poll (POLLNVAL) 72 74 73 75 # define ICMP_ENGAGE_EVENT(so, fdset) \ … … 157 159 */ 158 160 #if VBOX_WITH_DEBUG_NAT_SOCKETS 159 # if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS) 160 # define DO_LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) \ 161 # if defined(VBOX_WITH_SIMPLIFIED_SLIRP_SYNC) 162 # if defined(RT_OS_WINDOWS) 163 # define DO_LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) \ 161 164 do { \ 162 165 LogRel((" " #proto " %R[natsock] %R[natwinnetevents]\n", (so), (winevent))); \ 163 166 } while (0) 164 # else 167 # else /* RT_OS_WINDOWS */ 168 # define DO_LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) \ 169 do { \ 170 LogRel((" " #proto " %R[natsock] %s %s %s er: %s, %s, %s\n", (so), \ 171 CHECK_FD_SET(so, ign ,r_fdset) ? "READ":"", \ 172 CHECK_FD_SET(so, ign, w_fdset) ? "WRITE":"", \ 173 CHECK_FD_SET(so, ign, x_fdset) ? "OOB":"", \ 174 CHECK_FD_SET(so, ign, rderr) ? "RDERR":"", \ 175 CHECK_FD_SET(so, ign, rdhup) ? "RDHUP":"", \ 176 CHECK_FD_SET(so, ign, nval) ? "RDNVAL":"")); \ 177 } while (0) 178 # endif /* !RT_OS_WINDOWS */ 179 # else /* VBOX_WITH_SIMPLIFIED_SLIRP_SYNC */ 165 180 # define DO_LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) \ 166 181 do { \ … … 168 183 FD_ISSET((so)->s, (w_fdset))?"WRITE":"", FD_ISSET((so)->s, (x_fdset))?"OOB":"")); \ 169 184 } while (0) 170 # endif /* VBOX_WITH_DEBUG_NAT_SOCKETS */171 #else 185 # endif 186 #else /* VBOX_WITH_DEBUG_NAT_SOCKETS */ 172 187 # define DO_LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) do {} while (0) 173 188 #endif /* !VBOX_WITH_DEBUG_NAT_SOCKETS */ 174 189 175 #define LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) DO_LOG_NAT_SOCK((so), proto, (winevent), (r_fdset), (w_fdset), (x_fdset))190 #define LOG_NAT_SOCK(so, proto, winevent, r_fdset, w_fdset, x_fdset) DO_LOG_NAT_SOCK((so), proto, (winevent), r_fdset, w_fdset, x_fdset) 176 191 177 192 static const uint8_t special_ethaddr[6] =
Note:
See TracChangeset
for help on using the changeset viewer.