VirtualBox

Changeset 11075 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 2, 2008 6:33:24 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33984
Message:

DrvIntNet: New CFGM option SharedMacOnWire for supporting wireless trunk.

File:
1 edited

Legend:

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

    r11059 r11075  
    757757                              "SendBufferSize\0"
    758758                              "RestrictAccess\0"
     759                              "SharedMacOnWire\0"
    759760                              "IsService\0"))
    760761        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
     
    833834                                N_("Configuration error: Failed to get the \"RestrictAccess\" value"));
    834835    OpenReq.fFlags = fRestrictAccess ? 0 : INTNET_OPEN_FLAGS_PUBLIC;
     836
     837    /** @cfgm{SharedMacOnWire, boolean, false}
     838     * Whether to shared the MAC address of the host interface when using the wire. When
     839     * attaching to a wireless NIC this option is usally a requirement.
     840     */
     841    bool fSharedMacOnWire;
     842    rc = CFGMR3QueryBoolDef(pCfgHandle, "SharedMacOnWire", &fSharedMacOnWire, false);
     843    if (VBOX_FAILURE(rc))
     844        return PDMDRV_SET_ERROR(pDrvIns, rc,
     845                                N_("Configuration error: Failed to get the \"SharedMacOnWire\" value"));
     846    if (fSharedMacOnWire)
     847        OpenReq.fFlags |= INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE;
    835848
    836849    /** @cfgm{ReceiveBufferSize, uint32_t, 234 KB}
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