VirtualBox

Changeset 15000 in vbox


Ignore:
Timestamp:
Dec 4, 2008 7:04:23 PM (16 years ago)
Author:
vboxsync
Message:

Allow up to 8 network cards.

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r14420 r15000  
    50895089    PDM_DEVREG_CLASS_NETWORK,
    50905090    /* cMaxInstances */
    5091     4,
     5091    8,
    50925092    /* cbInstance */
    50935093    sizeof(PCNetState),
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r14828 r15000  
    958958        rc = CFGMR3InsertNode(pDev, szInstance, &pInst);                            RC_CHECK();
    959959        rc = CFGMR3InsertInteger(pInst, "Trusted",              1); /* boolean */   RC_CHECK();
    960         /* the first network card gets the PCI ID 3, the next 3 gets 8..10. */
    961         const unsigned iPciDeviceNo = !ulInstance ? 3 : ulInstance - 1 + 8;
     960        /* the first network card gets the PCI ID 3, the next 3 gets 8..10,
     961         * next 4 get 16..19. */
     962        unsigned iPciDeviceNo = 3;
     963        if (ulInstance)
     964        {
     965            if (ulInstance < 4)
     966                iPciDeviceNo = ulInstance - 1 + 8;
     967            else
     968                iPciDeviceNo = ulInstance - 4 + 16;
     969        }
    962970        rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo", iPciDeviceNo);               RC_CHECK();
    963971        Assert(!afPciDeviceNo[iPciDeviceNo]);
  • trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd

    r14698 r15000  
    590590      <xsd:restriction base="xsd:unsignedInt">
    591591        <xsd:minInclusive value="0"/>
    592         <xsd:maxExclusive value="4"/>
     592        <xsd:maxExclusive value="8"/>
    593593      </xsd:restriction>
    594594    </xsd:simpleType>
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