VirtualBox

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


Ignore:
Timestamp:
Mar 16, 2009 4:53:37 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44537
Message:

OVF: export the network card hardware type

File:
1 edited

Legend:

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

    r17941 r17956  
    28292829                                strCaption = Utf8StrFmt("Ethernet adapter on '%s'", desc.strOvf.c_str());
    28302830                                type = OVFResourceType_EthernetAdapter; // 10
     2831                                /* Set the hardware type to something useful.
     2832                                 * To be compatible with vmware & others we set
     2833                                 * PCNet32 for our PCNet types. For the E1000
     2834                                 * cards we invented E1000 as a generic type.
     2835                                 * */
     2836                                switch (desc.strVbox.toInt32())
     2837                                {
     2838                                    case NetworkAdapterType_Am79C970A:
     2839                                    case NetworkAdapterType_Am79C973: strResourceSubType = "PCNet32"; break;
     2840                                    case NetworkAdapterType_I82540EM:
     2841                                    case NetworkAdapterType_I82543GC: strResourceSubType = "E1000"; break;
     2842                                }
    28312843                                strConnection = desc.strOvf;
    28322844
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