VirtualBox

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


Ignore:
Timestamp:
Mar 25, 2010 4:20:35 PM (15 years ago)
Author:
vboxsync
Message:

Main/DHCPServer: fixed the format of the MAC address passed to the DHCP server

File:
1 edited

Legend:

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

    r27607 r27716  
    246246    //temporary hack for testing
    247247    //    DHCPCFG_NAME
    248     char strMAC[13];
     248    char strMAC[32];
    249249    Guid guid;
    250250    guid.create();
    251     RTStrPrintf (strMAC, sizeof(strMAC), "080027%02X%02X%02X",
     251    RTStrPrintf (strMAC, sizeof(strMAC), "08:00:27:%02X:%02X:%02X",
    252252                 guid.ptr()->au8[0], guid.ptr()->au8[1], guid.ptr()->au8[2]);
    253253    m.dhcp.setOption(DHCPCFG_MACADDRESS, strMAC, true);
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