VirtualBox

Changeset 21983 in vbox


Ignore:
Timestamp:
Aug 5, 2009 11:28:35 AM (15 years ago)
Author:
vboxsync
Message:

Network Settings: to make sure that interface name is already there before trying to use AttachTo* API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp

    r19051 r21983  
    125125            break;
    126126        case KNetworkAttachmentType_Bridged:
     127            mAdapter.SetHostInterface (alternativeName());
    127128            mAdapter.AttachToBridgedInterface();
     129            break;
     130        case KNetworkAttachmentType_Internal:
     131            mAdapter.SetInternalNetwork (alternativeName());
     132            mAdapter.AttachToInternalNetwork();
     133            break;
     134        case KNetworkAttachmentType_HostOnly:
    128135            mAdapter.SetHostInterface (alternativeName());
    129             break;
    130         case KNetworkAttachmentType_Internal:
    131             mAdapter.AttachToInternalNetwork();
    132             mAdapter.SetInternalNetwork (alternativeName());
    133             break;
    134         case KNetworkAttachmentType_HostOnly:
    135136            mAdapter.AttachToHostOnlyInterface();
    136             mAdapter.SetHostInterface (alternativeName());
    137137            break;
    138138        default:
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