VirtualBox

Changeset 107548 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jan 8, 2025 7:54:13 PM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166619
Message:

Devices/Network: Fixed and added configuration for packets broadcast to NAT adapter's network. Propagated additional parameters from CFGM. Simplified port forwarding a bit and added additional release logging. bugref:10268

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Main/src-server/NATEngineImpl.cpp

    r106061 r107548  
    199199
    200200    mData->m->fLocalhostReachable = false; /* Applies to new VMs only, see @bugref{9896} */
     201    mData->m->fForwardBroadcast = false;       /* Applies to new VMs only. see @bugref{10268} */
    201202}
    202203
     
    464465}
    465466
     467HRESULT NATEngine::setForwardBroadcast(BOOL fForwardBroadcast)
     468{
     469    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     470
     471    if (mData->m->fForwardBroadcast != RT_BOOL(fForwardBroadcast))
     472    {
     473        mData->m.backup();
     474        mData->m->fForwardBroadcast = RT_BOOL(fForwardBroadcast);
     475        mParent->i_setModified(Machine::IsModified_NetworkAdapters);
     476    }
     477    return S_OK;
     478}
     479
     480HRESULT NATEngine::getForwardBroadcast(BOOL *pfForwardBroadcast)
     481{
     482    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     483    *pfForwardBroadcast = mData->m->fForwardBroadcast;
     484    return S_OK;
     485}
     486
    466487HRESULT NATEngine::setTFTPPrefix(const com::Utf8Str &aTFTPPrefix)
    467488{
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