Changeset 16948 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Feb 19, 2009 1:36:07 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43104
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r16946 r16948 1121 1121 int status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen); 1122 1122 if (status != 0) 1123 LogRel(("NAT: can't get error status from %R[natsock]\n", so));1123 LogRel(("NAT: can't get error status from %R[natsock]\n", so)); 1124 1124 #ifndef RT_OS_SOLARIS 1125 1125 status = ioctl(so->s, FIONREAD, &inq); /* tcp(7) recommends SIOCINQ which is Linux specific */ … … 1127 1127 { 1128 1128 /* EINVAL returned if socket in listen state tcp(7)*/ 1129 LogRel(("NAT: can't get depth of IN queue status from %R[natsock]\n", so));1129 LogRel(("NAT: can't get depth of IN queue status from %R[natsock]\n", so)); 1130 1130 } 1131 1131 status = ioctl(so->s, TIOCOUTQ, &outq); /* SIOCOUTQ see previous comment */ 1132 1132 if (status != 0) 1133 LogRel(("NAT: can't get depth of OUT queue from %R[natsock]\n", so));1133 LogRel(("NAT: can't get depth of OUT queue from %R[natsock]\n", so)); 1134 1134 #else 1135 1135 inq = outq = -1; … … 1153 1153 * Give TCP/IP stack wait or expire the socket. 1154 1154 */ 1155 LogRel(("NAT: %R[natsock] err(%d:%s) s(in:%d,out:%d)happens on read I/O, "1155 LogRel(("NAT: %R[natsock] err(%d:%s) s(in:%d,out:%d)happens on read I/O, " 1156 1156 "other side close connection \n", so, err, strerror(err), inq, outq)); 1157 1157 CONTINUE(tcp); … … 1163 1163 && !UNIX_CHECK_FD_SET(so, NetworkEvents, xfds)) 1164 1164 { 1165 LogRel(("NAT: system expires the socket %R[natsock] err(%d:%s) s(in:%d,out:%d) happens on non-I/O. ",1165 LogRel(("NAT: system expires the socket %R[natsock] err(%d:%s) s(in:%d,out:%d) happens on non-I/O. ", 1166 1166 so, err, strerror(err), inq, outq)); 1167 1167 goto tcp_input_close; 1168 1168 } 1169 LogRel(("NAT: %R[natsock] we've met(%d:%s) s(in:%d, out:%d) unhandled combination hup (%d) "1169 LogRel(("NAT: %R[natsock] we've met(%d:%s) s(in:%d, out:%d) unhandled combination hup (%d) " 1170 1170 "rederr(%d) on (r:%d, w:%d, x:%d)\n", 1171 1171 so, err, strerror(err), … … 1386 1386 if (!m) 1387 1387 { 1388 LogRel((" can't allocate new mbuf\n"));1388 LogRel(("NAT: can't allocate new mbuf\n")); 1389 1389 return; 1390 1390 }
Note:
See TracChangeset
for help on using the changeset viewer.