VirtualBox

Changeset 14122 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Nov 12, 2008 8:12:08 AM (16 years ago)
Author:
vboxsync
Message:

default value for maximum socket entries was initialized
asserts was fixed (inverted)

File:
1 edited

Legend:

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

    r14121 r14122  
    224224#ifdef VBOX_WITH_SIMPLEFIED_SLIRP_SYNC
    225225    /*XXX:probably should be configurable*/
     226    pData->cMaxEvent = 256;
    226227    pData->phEvents = malloc(sizeof(HANDLE) * pData->cMaxEvent);
    227228#endif
     
    400401
    401402#if defined(VBOX_WITH_SIMPLEFIED_SLIRP_SYNC) && defined(RT_OS_WINDOWS)
    402                         AssertRelease(cEvents >= pData->cMaxEvent);
     403                        AssertRelease(cEvents < pData->cMaxEvent);
    403404                        WSAResetEvent(so->hNetworkEvent);
    404405#endif
     
    502503#else
    503504                                WSAResetEvent(so->hNetworkEvent);
    504                                 AssertRelease(cEvents >= pData->cMaxEvent);
     505                                AssertRelease(cEvents < pData->cMaxEvent);
    505506                                rc = WSAEventSelect(so->s, so->hNetworkEvent, FD_READ|FD_WRITE|FD_OOB|FD_ACCEPT);
    506507                                AssertRelease(rc != SOCKET_ERROR);
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