VirtualBox

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


Ignore:
Timestamp:
Sep 29, 2008 10:47:19 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37130
Message:

Main: Solaris/vboxnetflt: Hostif NIC Uuid fix.

File:
1 edited

Legend:

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

    r12783 r12785  
    573573     * Try picking up description from our NIC map.
    574574     */
     575    char szNICInstance[128];
     576    RTStrPrintf(szNICInstance, sizeof(szNICInstance), "%s%d", pszIface, Instance);
    575577    char szNICDesc[256];
    576578    std::string Description = SolarisNICMap[pszIface];
    577579    if (Description != "")
    578         RTStrPrintf(szNICDesc, sizeof(szNICDesc), "%s%d - %s", pszIface, Instance, Description.c_str());
     580        RTStrPrintf(szNICDesc, sizeof(szNICDesc), "%s - %s", szNICInstance, Description.c_str());
    579581    else
    580         RTStrPrintf(szNICDesc, sizeof(szNICDesc), "%s%d - Ethernet", pszIface, Instance);
     582        RTStrPrintf(szNICDesc, sizeof(szNICDesc), "%s - Ethernet", szNICInstance);
    581583
    582584    /*
     
    585587    RTUUID Uuid;
    586588    RTUuidClear(&Uuid);
    587     memcpy(&Uuid, pszIface, RT_MIN(strlen(pszIface), sizeof(Uuid)));
     589    memcpy(&Uuid, szNICInstance, RT_MIN(strlen(szNICInstance), sizeof(Uuid)));
    588590    Uuid.Gen.u8ClockSeqHiAndReserved = (Uuid.Gen.u8ClockSeqHiAndReserved & 0x3f) | 0x80;
    589591    Uuid.Gen.u16TimeHiAndVersion = (Uuid.Gen.u16TimeHiAndVersion & 0x0fff) | 0x4000;
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