VirtualBox

Changeset 29398 in vbox


Ignore:
Timestamp:
May 12, 2010 9:45:06 AM (14 years ago)
Author:
vboxsync
Message:

VBoxServiceVMInfo: fixed the format of the /VirtualBox/GuestInfo/Net/%d/MAC guest property to match INetworkAdapter::GetMACAddress()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r29391 r29398  
    471471        char szMac[32];
    472472 #if defined(RT_OS_SOLARIS)
    473         char *pu8Mac = &ifrequest[i].ifr_enaddr[0];
     473        uint8_t *pu8Mac = (uint8_t*)&ifrequest[i].ifr_enaddr[0];
    474474 #else
    475         char *pu8Mac = &ifrequest[i].ifr_hwaddr.sa_data[0];
     475        uint8_t *pu8Mac = (uint8_t*)&ifrequest[i].ifr_hwaddr.sa_data[0];
    476476 #endif
    477         RTStrPrintf(szMac, sizeof(szMac), "%02x:%02x:%02x:%02x:%02x:%02x",
     477        RTStrPrintf(szMac, sizeof(szMac), "%02X%02X%02X%02X%02X%02X",
    478478                    pu8Mac[0], pu8Mac[1], pu8Mac[2], pu8Mac[3],  pu8Mac[4], pu8Mac[5]);
    479479        RTStrPrintf(szPropPath, sizeof(szPropPath), "/VirtualBox/GuestInfo/Net/%d/MAC", cIfacesReport);
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