Changeset 16757 in vbox for trunk/src/VBox
- Timestamp:
- Feb 14, 2009 4:29:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r16756 r16757 1113 1113 int inq, outq; 1114 1114 int status; 1115 #ifndef RT_OS_SOLARIS1116 1115 inq = -1; 1117 1116 socklen_t optlen = sizeof(int); 1118 1117 status = getsockopt(so->s, SOL_SOCKET, SO_ERROR, &err, &optlen); 1119 AssertRelease(status == 0 ); 1118 if (status != 0) 1119 LogRel(("NAT:can't get error status from %R[natsock]\n", so)); 1120 #ifndef RT_OS_SOLARIS 1120 1121 status = ioctl(so->s, FIONREAD, &inq); /* tcp(7) recommends SIOCINQ which is Linux specific */ 1121 AssertRelease(status == 0 || status == EINVAL);/* EINVAL returned if socket in listen state tcp(7)*/ 1122 if (status != 0 || status != EINVAL) 1123 { 1124 /* EINVAL returned if socket in listen state tcp(7)*/ 1125 LogRel(("NAT:can't get depth of IN queue status from %R[natsock]\n", so)); 1126 } 1122 1127 status = ioctl(so->s, TIOCOUTQ, &outq); /* SIOCOUTQ see previous comment */ 1123 AssertRelease(status == 0); 1128 if (status != 0) 1129 LogRel(("NAT:can't get depth of OUT queue from %R[natsock]\n", so)); 1124 1130 #else 1125 1131 inq = outq = -1;
Note:
See TracChangeset
for help on using the changeset viewer.