VirtualBox

Changeset 19165 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 24, 2009 11:36:51 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46449
Message:

Main-OVF: always use the VBox default network adapter if the OVF is written by VBox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r18838 r19165  
    15311531                             !ea.strAdapterType.compare("E10000", Utf8Str::CaseInsensitive)) // VMWare accidentally write this with VirtualCenter 3.5
    15321532                    {
    1533                         /* If the default adapter is already one of the three
    1534                          * E1000 adapters use the default one. If not use the
    1535                          * I82545EM as fallback. */
    1536 //                         if (!(defaultAdapterVBox == NetworkAdapterType_I82540EM ||
    1537 //                               defaultAdapterVBox == NetworkAdapterType_I82543GC ||
    1538 //                               defaultAdapterVBox == NetworkAdapterType_I82545EM))
    1539                         // always use this one since it's what VMware uses
    1540                         nwAdapterVBox = NetworkAdapterType_I82545EM;
     1533                        /* Check if this OVF was written by VirtualBox */
     1534                        if (vsysThis.strVirtualSystemType.contains("virtualbox", Utf8Str::CaseInsensitive))
     1535                        {
     1536                            /* If the default adapter is already one of the three
     1537                             * E1000 adapters use the default one. If not use the
     1538                             * I82545EM as fallback. */
     1539                            if (!(defaultAdapterVBox == NetworkAdapterType_I82540EM ||
     1540                                  defaultAdapterVBox == NetworkAdapterType_I82543GC ||
     1541                                  defaultAdapterVBox == NetworkAdapterType_I82545EM))
     1542                            nwAdapterVBox = NetworkAdapterType_I82540EM;
     1543                        }
     1544                        else
     1545                            /* Always use this one since it's what VMware uses */
     1546                            nwAdapterVBox = NetworkAdapterType_I82545EM;
    15411547                    }
    15421548#endif /* VBOX_WITH_E1000 */
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