- Timestamp:
- Mar 5, 2009 11:16:59 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r17389 r17391 1212 1212 status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen); 1213 1213 if (status != 0) 1214 Log Rel(("NAT: can't get error status from %R[natsock]\n", so));1214 Log(("NAT: can't get error status from %R[natsock]\n", so)); 1215 1215 #ifndef RT_OS_SOLARIS 1216 1216 status = ioctl(so->s, FIONREAD, &inq); /* tcp(7) recommends SIOCINQ which is Linux specific */ … … 1218 1218 { 1219 1219 /* EINVAL returned if socket in listen state tcp(7)*/ 1220 Log Rel(("NAT: can't get depth of IN queue status from %R[natsock]\n", so));1220 Log(("NAT: can't get depth of IN queue status from %R[natsock]\n", so)); 1221 1221 } 1222 1222 status = ioctl(so->s, TIOCOUTQ, &outq); /* SIOCOUTQ see previous comment */ 1223 1223 if (status != 0) 1224 Log Rel(("NAT: can't get depth of OUT queue from %R[natsock]\n", so));1224 Log(("NAT: can't get depth of OUT queue from %R[natsock]\n", so)); 1225 1225 #else 1226 1226 /* … … 1243 1243 * Give TCP/IP stack wait or expire the socket. 1244 1244 */ 1245 Log Rel(("NAT: %R[natsock] err(%d:%s) s(in:%d,out:%d)happens on read I/O, "1245 Log(("NAT: %R[natsock] err(%d:%s) s(in:%d,out:%d)happens on read I/O, " 1246 1246 "other side close connection \n", so, err, strerror(err), inq, outq)); 1247 1247 CONTINUE(tcp); … … 1253 1253 && !UNIX_CHECK_FD_SET(so, NetworkEvents, xfds)) 1254 1254 { 1255 Log Rel(("NAT: system expires the socket %R[natsock] err(%d:%s) s(in:%d,out:%d) happens on non-I/O. ",1255 Log(("NAT: system expires the socket %R[natsock] err(%d:%s) s(in:%d,out:%d) happens on non-I/O. ", 1256 1256 so, err, strerror(err), inq, outq)); 1257 1257 goto tcp_input_close; 1258 1258 } 1259 Log Rel(("NAT: %R[natsock] we've met(%d:%s) s(in:%d, out:%d) unhandled combination hup (%d) "1259 Log(("NAT: %R[natsock] we've met(%d:%s) s(in:%d, out:%d) unhandled combination hup (%d) " 1260 1260 "rederr(%d) on (r:%d, w:%d, x:%d)\n", 1261 1261 so, err, strerror(err),
Note:
See TracChangeset
for help on using the changeset viewer.