VirtualBox

Ignore:
Timestamp:
Dec 10, 2008 12:54:19 PM (16 years ago)
Author:
vboxsync
Message:

slirp: another fix for windows hosts

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r15239 r15243  
    754754                }
    755755
    756                 ret = soread(pData, so);
     756                ret = soread(pData, so, /*fCloseIfNothingRead=*/false);
    757757                /* Output it if we read something */
    758758                if (ret > 0)
     
    771771                for (;;)
    772772                {
    773                     ret = soread(pData, so);
     773                    ret = soread(pData, so, /*fCloseIfNothingRead=*/true);
    774774                    if (ret > 0)
    775775                        tcp_output(pData, sototcpcb(so));
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r15240 r15243  
    9393 */
    9494int
    95 soread(PNATState pData, struct socket *so)
     95soread(PNATState pData, struct socket *so, int fCloseIfNothingRead)
    9696{
    9797    int n, nn, lss, total;
     
    180180         * would be dangerous.
    181181         */
    182         if (nn == 0)
     182        if (nn == 0 && !fCloseIfNothingRead)
    183183            return 0;
    184184#endif
     
    248248     * urgent data.
    249249     */
    250     soread(pData, so);
     250    soread(pData, so, /*fCloseIfNothingRead=*/false);
    251251    tp->snd_up = tp->snd_una + so->so_snd.sb_cc;
    252252    tp->t_force = 1;
  • trunk/src/VBox/Devices/Network/slirp/socket.h

    r15230 r15243  
    100100struct socket * socreate _P((void));
    101101void sofree _P((PNATState, struct socket *));
    102 int soread _P((PNATState, struct socket *));
     102int soread _P((PNATState, struct socket *, int));
    103103void sorecvoob _P((PNATState, struct socket *));
    104104int sosendoob _P((struct socket *));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette