VirtualBox

Changeset 79762 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 14, 2019 3:51:10 AM (5 years ago)
Author:
vboxsync
Message:

Main/DHCPServer,Dhcpd,VBoxManage: Added --log option to the DHCP server so we can start logging early. Added log rotation and limits. Put the config file next to the log and leases file. Validate DHCP options by reusing the parser code from the server, adding a bunch more DHCP options to the parser. Removed legacy and hardcoded configuration options from the dhcp server, it's all config file now. Fixed a bug in the option parsing of the VBoxManage dhcpserver add/modify commands. [build fix] bugref:9288

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/DhcpOptions.cpp

    r79761 r79762  
    7272    }
    7373
    74     dst[cbOrig+1] = cbValue;
     74    dst[cbOrig+1] = (uint8_t)cbValue;
    7575    return VINF_SUCCESS;
    7676}
     
    182182
    183183template <typename a_Type>
    184 static int DhcpOption::parseList(std::vector<a_Type> &aList, const char *pcszValue)
     184/*static*/ int DhcpOption::parseList(std::vector<a_Type> &aList, const char *pcszValue)
    185185{
    186186    std::vector<a_Type> vecTmp;
     
    231231/** ASSUME that uint8_t means hex byte strings. */
    232232template <>
    233 static int DhcpOption::parseList(std::vector<uint8_t> &aList, const char *pcszValue)
     233/*static*/ int DhcpOption::parseList(std::vector<uint8_t> &aList, const char *pcszValue)
    234234{
    235235    uint8_t     abBuf[256];
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