Changeset 67792 in vbox
- Timestamp:
- Jul 5, 2017 11:30:48 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116711
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/NetworkAdapterImpl.h
r66940 r67792 112 112 HRESULT i_updateMacAddress(Utf8Str aMacAddress); 113 113 void i_updateBandwidthGroup(BandwidthGroup *aBwGroup); 114 HRESULT i_ checkAndSwitchFromNatNetworking(com::Utf8StrnetworkName);114 HRESULT i_switchFromNatNetworking(const com::Utf8Str &aNatnetworkName); 115 115 HRESULT i_switchToNatNetworking(const com::Utf8Str &aNatNetworkName); 116 116 -
trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp
r66940 r67792 458 458 459 459 if (oldAttachmentType == NetworkAttachmentType_NATNetwork) 460 i_ checkAndSwitchFromNatNetworking(mData->strNATNetworkName);460 i_switchFromNatNetworking(mData->strNATNetworkName); 461 461 462 462 if (aAttachmentType == NetworkAttachmentType_NATNetwork) … … 648 648 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 649 649 mlock.release(); 650 i_checkAndSwitchFromNatNetworking(oldNatNetworkName.raw()); 651 652 i_switchToNatNetworking(aNATNetwork); 650 651 if (mData->mode == NetworkAttachmentType_NATNetwork) 652 { 653 i_switchFromNatNetworking(oldNatNetworkName.raw()); 654 i_switchToNatNetworking(aNATNetwork); 655 } 656 653 657 /* When changing the host adapter, adapt the CFGM logic to make this 654 658 * change immediately effect and to notify the guest that the network … … 1389 1393 1390 1394 1391 HRESULT NetworkAdapter::i_ checkAndSwitchFromNatNetworking(com::Utf8StrnetworkName)1395 HRESULT NetworkAdapter::i_switchFromNatNetworking(const com::Utf8Str &networkName) 1392 1396 { 1393 1397 HRESULT hrc;
Note:
See TracChangeset
for help on using the changeset viewer.