VirtualBox

Changeset 87949 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Mar 4, 2021 12:49:43 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143044
Message:

NAT/Net: Refuse to modify NATNetwork when an instance of it is
running. Use existing infrastructure that keeps track of the number
of VMs that use any given natnet (though it's exposes to natnet in a
somewhat haphazard way). bugref:9909.

Location:
trunk/src/VBox/Main/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/NATNetworkImpl.h

    r82968 r87949  
    115115
    116116    // Internal methods
     117    HRESULT setErrorBusy();
     118
    117119    int i_recalculateIpv4AddressAssignments();
    118120    int i_findFirstAvailableOffset(ADDRESSLOOKUPTYPE, uint32_t *);
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r86908 r87949  
    192192    int i_natNetworkRefInc(const Utf8Str &aNetworkName);
    193193    int i_natNetworkRefDec(const Utf8Str &aNetworkName);
     194
     195    RWLockHandle *i_getNatNetLock() const;
     196    bool i_isNatNetStarted(const Utf8Str &aNetworkName) const;
    194197
    195198    void i_onCloudProviderListChanged(BOOL aRegistered);
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