VirtualBox

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


Ignore:
Timestamp:
Nov 30, 2011 1:43:01 AM (13 years ago)
Author:
vboxsync
Message:

NAT: condition for validation of proposed value has been added in slirp_set_somaxconn

File:
1 edited

Legend:

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

    r39466 r39467  
    20162016{
    20172017    LogFlowFunc(("iSoMaxConn:d\n", iSoMaxConn));
     2018    /* Conditions */
    20182019    if (iSoMaxConn > SOMAXCONN)
    20192020    {
     
    20212022        iSoMaxConn = SOMAXCONN;
    20222023    }
     2024
     2025    if (iSoMaxConn < 1)
     2026    {
     2027        LogRel(("NAT: proposed value(%d) of somaxconn is invalid, default value is used (%d)\n", iSoMaxConn, pData->soMaxConn));
     2028        LogFlowFuncLeave();
     2029        return;
     2030    }
     2031
     2032    /* Asignment */
    20232033    if (pData->soMaxConn != iSoMaxConn)
    20242034    {
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