VirtualBox

Changeset 41272 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
May 14, 2012 9:02:00 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77932
Message:

Network: Increased the limit of host-only interfaces to 128.

Location:
trunk/src/VBox/HostDrivers/VBoxNetAdp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c

    r40806 r41272  
    11851185    memset(g_aUnits, 0, sizeof(g_aUnits));
    11861186    memset(g_aAdapters, 0, sizeof(g_aAdapters));
     1187    LogFlow(("vboxnetadp: max host-only interfaces supported: %d (%d bytes)\n",
     1188             VBOXNETADP_MAX_INSTANCES, sizeof(g_aAdapters)));
    11871189    for (i = 0; i < RT_ELEMENTS(g_aAdapters); i++)
    11881190    {
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdpInternal.h

    r38408 r41272  
    3030typedef struct VBOXNETADPGLOBALS *PVBOXNETADPGLOBALS;
    3131
    32 #define VBOXNETADP_MAX_INSTANCES   8
     32#define VBOXNETADP_MAX_INSTANCES   128
    3333#define VBOXNETADP_MAX_UNITS       128
    3434#define VBOXNETADP_NAME            "vboxnet"
     
    126126        void *pvAlign;
    127127        /** Padding. */
    128 #if defined(RT_OS_WINDOWS)
    129 # if defined(VBOX_NETFLT_ONDEMAND_BIND)
    130         uint8_t abPadding[192];
    131 # else
    132         uint8_t abPadding[1024];
    133 # endif
    134 #elif defined(RT_OS_LINUX)
    135128        uint8_t abPadding[64];
    136 #else
    137         uint8_t abPadding[64];
    138 #endif
    139129    } u;
    140130    /** The interface name. */
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c

    r39419 r41272  
    315315            {
    316316                Log(("VBoxNetAdpLinuxIOCtl: vboxNetAdpCreate -> %Rrc\n", rc));
    317                 return -EINVAL;
     317                return -(rc == VERR_OUT_OF_RESOURCES ? ENOMEM : EINVAL);
    318318            }
    319319
Note: See TracChangeset for help on using the changeset viewer.

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