Changeset 61783 in vbox
- Timestamp:
- Jun 21, 2016 8:37:18 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108177
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r61765 r61783 2333 2333 NetworkAdapter::NetworkAdapter() : 2334 2334 ulSlot(0), 2335 type(NetworkAdapterType_Am79C97 3),2335 type(NetworkAdapterType_Am79C970A), // default for old VMs, for new ones it's Am79C973 2336 2336 fEnabled(false), 2337 2337 fCableConnected(false), // default for old VMs, for new ones it's true … … 2363 2363 return !fEnabled 2364 2364 && strMACAddress.isEmpty() 2365 && ( (sv >= SettingsVersion_v1_16 && fCableConnected )2366 || (sv < SettingsVersion_v1_16 && !fCableConnected ))2365 && ( (sv >= SettingsVersion_v1_16 && fCableConnected && type == NetworkAdapterType_Am79C973) 2366 || (sv < SettingsVersion_v1_16 && !fCableConnected && type == NetworkAdapterType_Am79C970A)) 2367 2367 && ulLineSpeed == 0 2368 2368 && enmPromiscModePolicy == NetworkAdapterPromiscModePolicy_Deny 2369 && type == NetworkAdapterType_Am79C9732370 2369 && mode == NetworkAttachmentType_Null 2371 2370 && nat.areDefaultSettings() … … 3286 3285 if (m->sv >= SettingsVersion_v1_16) 3287 3286 { 3288 /* Starting with VirtualBox 5.1 the default is true, before it was3289 * false. This needs to matched byNetworkAdapter.areDefaultSettings(). */3287 /* Starting with VirtualBox 5.1 the default is cable connected and 3288 * PCnet-FAST III. Needs to match NetworkAdapter.areDefaultSettings(). */ 3290 3289 nic.fCableConnected = true; 3290 nic.type = NetworkAdapterType_Am79C973; 3291 3291 } 3292 3292 … … 5738 5738 pelmAdapter->setAttribute("promiscuousModePolicy", pszPolicy); 5739 5739 5740 if (nic.type != NetworkAdapterType_Am79C973) 5740 if ( (m->sv >= SettingsVersion_v1_16 && nic.type != NetworkAdapterType_Am79C973) 5741 || (m->sv < SettingsVersion_v1_16 && nic.type != NetworkAdapterType_Am79C970A)) 5741 5742 { 5742 5743 const char *pcszType;
Note:
See TracChangeset
for help on using the changeset viewer.