Changeset 15243 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Dec 10, 2008 12:54:19 PM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15239 r15243 754 754 } 755 755 756 ret = soread(pData, so );756 ret = soread(pData, so, /*fCloseIfNothingRead=*/false); 757 757 /* Output it if we read something */ 758 758 if (ret > 0) … … 771 771 for (;;) 772 772 { 773 ret = soread(pData, so );773 ret = soread(pData, so, /*fCloseIfNothingRead=*/true); 774 774 if (ret > 0) 775 775 tcp_output(pData, sototcpcb(so)); -
trunk/src/VBox/Devices/Network/slirp/socket.c
r15240 r15243 93 93 */ 94 94 int 95 soread(PNATState pData, struct socket *so )95 soread(PNATState pData, struct socket *so, int fCloseIfNothingRead) 96 96 { 97 97 int n, nn, lss, total; … … 180 180 * would be dangerous. 181 181 */ 182 if (nn == 0 )182 if (nn == 0 && !fCloseIfNothingRead) 183 183 return 0; 184 184 #endif … … 248 248 * urgent data. 249 249 */ 250 soread(pData, so );250 soread(pData, so, /*fCloseIfNothingRead=*/false); 251 251 tp->snd_up = tp->snd_una + so->so_snd.sb_cc; 252 252 tp->t_force = 1; -
trunk/src/VBox/Devices/Network/slirp/socket.h
r15230 r15243 100 100 struct socket * socreate _P((void)); 101 101 void sofree _P((PNATState, struct socket *)); 102 int soread _P((PNATState, struct socket * ));102 int soread _P((PNATState, struct socket *, int)); 103 103 void sorecvoob _P((PNATState, struct socket *)); 104 104 int sosendoob _P((struct socket *));
Note:
See TracChangeset
for help on using the changeset viewer.