Changeset 38068 in vbox for trunk/src/VBox
- Timestamp:
- Jul 19, 2011 12:35:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r38044 r38068 967 967 */ 968 968 /* @todo: vvl - check which predicat here will be more useful here in rerm of new sbufs. */ 969 if (CONN_CANFRCV(so) && (SBUF_LEN(&so->so_snd) < (SBUF_SIZE(&so->so_snd)/2))) 969 if ( CONN_CANFRCV(so) 970 && (SBUF_LEN(&so->so_snd) < (SBUF_SIZE(&so->so_snd)/2)) 971 #ifdef NAT_CONNECT_EXPERIMENT 972 && !(so->so_state & SS_ISFCONNECTING) 973 #endif 974 ) 970 975 { 971 976 STAM_COUNTER_INC(&pData->StatTCPHot); … … 1167 1172 # ifdef RT_OS_WINDOWS 1168 1173 /** 1169 * In some cases FD_C ONNECTcomes with FD_OOB, that confuse tcp processing.1174 * In some cases FD_CLOSE comes with FD_OOB, that confuse tcp processing. 1170 1175 */ 1171 && !WIN_CHECK_FD_SET(so, NetworkEvents, c onnectfds)1176 && !WIN_CHECK_FD_SET(so, NetworkEvents, closefds) 1172 1177 # endif 1173 1178 #endif … … 1183 1188 || WIN_CHECK_FD_SET(so, NetworkEvents, acceptds)) 1184 1189 { 1190 1185 1191 #ifdef DEBUG_vvl 1186 1192 Assert(((so->so_state & SS_ISFCONNECTING) == 0)); 1193 #endif 1194 #ifdef NAT_CONNECT_EXPERIMENT 1195 if (WIN_CHECK_FD_SET(so, NetworkEvents, connectfds)) 1196 { 1197 TCP_ENGAGE_EVENT2(so, readfds, acceptds); 1198 goto dont_read_now; 1199 } 1187 1200 #endif 1188 1201 /* … … 1200 1213 if (RT_LIKELY(ret > 0)) 1201 1214 TCP_OUTPUT(pData, sototcpcb(so)); 1215 #ifdef NAT_CONNECT_EXPERIMENT 1216 dont_read_now:; 1217 #endif 1202 1218 } 1203 1219 … … 1592 1608 size_t mlen = 0; 1593 1609 STAM_PROFILE_START(&pData->StatIF_encap, a); 1610 LogFlowFunc(("ENTER: pData:%p, eth_proto:%RX16, m:%p, flags:%d\n", 1611 pData, eth_proto, m, flags)); 1594 1612 1595 1613 M_ASSERTPKTHDR(m); … … 1632 1650 mbuf = mtod(m, uint8_t *); 1633 1651 eh->h_proto = RT_H2N_U16(eth_proto); 1652 LogFunc(("eh(dst:%RTmac, src:%RTmac)\n", eh->h_dest, eh->h_source)); 1634 1653 if (flags & ETH_ENCAP_URG) 1635 1654 slirp_urg_output(pData->pvUser, m, mbuf, mlen); … … 1638 1657 done: 1639 1658 STAM_PROFILE_STOP(&pData->StatIF_encap, a); 1659 LogFlowFuncLeave(); 1640 1660 } 1641 1661
Note:
See TracChangeset
for help on using the changeset viewer.