VirtualBox

Changeset 47127 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 13, 2013 7:53:57 AM (11 years ago)
Author:
vboxsync
Message:

server-id should be sent unconditionally for (DHCPOFFER, DHCPACK, DHCPNAK).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/Config.cpp

    r47020 r47127  
    513513    client->rawOptions.push_back(opt);
    514514
    515     opt.u8OptId = RTNET_DHCP_OPT_SERVER_ID;
    516     ((PRTNETADDRIPV4)opt.au8RawOpt)->u = m_OurAddress.u;
    517     opt.cbRawOpt = sizeof(RTNETADDRIPV4);
    518     client->rawOptions.push_back(opt);
    519 
    520515    opt.u8OptId = RTNET_DHCP_OPT_LEASE_TIME;
    521516    *(uint32_t *)opt.au8RawOpt = RT_H2N_U32(ConfigurationManager::getConfigurationManager()->getLeaseTime());
     
    567562    opt.au8RawOpt[0] = RTNET_DHCP_MT_ACK;
    568563    opt.cbRawOpt = 1;
     564    client->rawOptions.push_back(opt);
     565
     566    opt.u8OptId = RTNET_DHCP_OPT_LEASE_TIME;
     567    *(uint32_t *)opt.au8RawOpt = RT_H2N_U32(ConfigurationManager::getConfigurationManager()->getLeaseTime());
     568    opt.cbRawOpt = sizeof(RTNETADDRIPV4);
    569569    client->rawOptions.push_back(opt);
    570570
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