VirtualBox

Changeset 91416 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Sep 28, 2021 6:15:49 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147096
Message:

Devices: bugref:9932 DrvVMNet and host-only network initial implementation

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r91396 r91416  
    255255    /** VBox HDD container media driver group. */
    256256    LOG_GROUP_DRV_VD,
     257    /** The VMNET networking driver group. */
     258    LOG_GROUP_DRV_VMNET,
    257259    /** VRDE audio driver group. */
    258260    LOG_GROUP_DRV_VRDE_AUDIO,
     
    499501    /** Main group, IHostNetworkInterface. */
    500502    LOG_GROUP_MAIN_HOSTNETWORKINTERFACE,
     503    /** Main group, IHostOnlyNetwork. */
     504    LOG_GROUP_MAIN_HOSTONLYNETWORK,
    501505    /** Main group, IHostUpdate. */
    502506    LOG_GROUP_MAIN_HOSTUPDATE,
     
    900904    "DRV_VBOXHDD", \
    901905    "DRV_VD", \
     906    "DRV_VMNET", \
    902907    "DRV_VRDE_AUDIO", \
    903908    "DRV_VSWITCH", \
     
    10221027    "MAIN_HOSTDRIVEPARTITION", \
    10231028    "MAIN_HOSTNETWORKINTERFACE", \
     1029    "MAIN_HOSTONLYNETWORK", \
    10241030    "MAIN_HOSTUPDATE", \
    10251031    "MAIN_HOSTUSBDEVICE", \
  • trunk/include/VBox/settings.h

    r91326 r91416  
    436436typedef std::list<NATNetwork> NATNetworksList;
    437437
     438#ifdef VBOX_WITH_VMNET
     439/**
     440 * HostOnly Networking settings.
     441 */
     442struct HostOnlyNetwork
     443{
     444    HostOnlyNetwork();
     445
     446    com::Guid    uuid;
     447    com::Utf8Str strNetworkName;
     448    com::Utf8Str strNetworkMask;
     449    com::Utf8Str strIPLower;
     450    com::Utf8Str strIPUpper;
     451    bool         fEnabled;
     452};
     453
     454typedef std::list<HostOnlyNetwork> HostOnlyNetworksList;
     455#endif /* VBOX_WITH_VMNET */
     456
    438457#ifdef VBOX_WITH_CLOUD_NET
    439458/**
     
    462481    void readMachineRegistry(const xml::ElementNode &elmMachineRegistry);
    463482    void readNATNetworks(const xml::ElementNode &elmNATNetworks);
     483#ifdef VBOX_WITH_VMNET
     484    void readHostOnlyNetworks(const xml::ElementNode &elmHostOnlyNetworks);
     485#endif /* VBOX_WITH_VMNET */
    464486#ifdef VBOX_WITH_CLOUD_NET
    465487    void readCloudNetworks(const xml::ElementNode &elmCloudNetworks);
     
    474496    DHCPServersList         llDhcpServers;
    475497    NATNetworksList         llNATNetworks;
     498#ifdef VBOX_WITH_VMNET
     499    HostOnlyNetworksList    llHostOnlyNetworks;
     500#endif /* VBOX_WITH_VMNET */
    476501#ifdef VBOX_WITH_CLOUD_NET
    477502    CloudNetworksList       llCloudNetworks;
     
    802827    com::Utf8Str                        strBridgedName;
    803828    com::Utf8Str                        strHostOnlyName;
     829#ifdef VBOX_WITH_VMNET
     830    com::Utf8Str                        strHostOnlyNetworkName;
     831#endif /* VBOX_WITH_VMNET */
    804832    com::Utf8Str                        strInternalNetworkName;
    805833    com::Utf8Str                        strGenericDriver;
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