VirtualBox

Changeset 47129 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 13, 2013 11:44:12 AM (11 years ago)
Author:
vboxsync
Message:

VBoxNetDHCP: cosmetics.

File:
1 edited

Legend:

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

    r47128 r47129  
    513513    client->rawOptions.push_back(opt);
    514514
    515     /* XXX: here should be condition MUST NOT on DHCPINFORM */
    516515    opt.u8OptId = RTNET_DHCP_OPT_LEASE_TIME;
    517516    *(uint32_t *)opt.au8RawOpt = RT_H2N_U32(ConfigurationManager::getConfigurationManager()->getLeaseTime());
     
    565564    client->rawOptions.push_back(opt);
    566565
     566    /*
     567     * XXX: lease time should be conditional. If on dhcprequest then tim should be provided,
     568     * else on dhcpinform it mustn't.
     569     */
    567570    opt.u8OptId = RTNET_DHCP_OPT_LEASE_TIME;
    568     *(uint32_t *)opt.au8RawOpt = RT_H2N_U32(ConfigurationManager::getConfigurationManager()->getLeaseTime());
     571    *(uint32_t *)opt.au8RawOpt =
     572      RT_H2N_U32(ConfigurationManager::getConfigurationManager()->getLeaseTime());
    569573    opt.cbRawOpt = sizeof(RTNETADDRIPV4);
    570574    client->rawOptions.push_back(opt);
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