Changeset 12785 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 29, 2008 10:47:19 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 37130
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r12783 r12785 573 573 * Try picking up description from our NIC map. 574 574 */ 575 char szNICInstance[128]; 576 RTStrPrintf(szNICInstance, sizeof(szNICInstance), "%s%d", pszIface, Instance); 575 577 char szNICDesc[256]; 576 578 std::string Description = SolarisNICMap[pszIface]; 577 579 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()); 579 581 else 580 RTStrPrintf(szNICDesc, sizeof(szNICDesc), "%s %d - Ethernet", pszIface,Instance);582 RTStrPrintf(szNICDesc, sizeof(szNICDesc), "%s - Ethernet", szNICInstance); 581 583 582 584 /* … … 585 587 RTUUID Uuid; 586 588 RTUuidClear(&Uuid); 587 memcpy(&Uuid, pszIface, RT_MIN(strlen(pszIface), sizeof(Uuid)));589 memcpy(&Uuid, szNICInstance, RT_MIN(strlen(szNICInstance), sizeof(Uuid))); 588 590 Uuid.Gen.u8ClockSeqHiAndReserved = (Uuid.Gen.u8ClockSeqHiAndReserved & 0x3f) | 0x80; 589 591 Uuid.Gen.u16TimeHiAndVersion = (Uuid.Gen.u16TimeHiAndVersion & 0x0fff) | 0x4000;
Note:
See TracChangeset
for help on using the changeset viewer.