VirtualBox

Ignore:
Timestamp:
Nov 20, 2018 11:41:35 AM (6 years ago)
Author:
vboxsync
Message:

Main/DHCPD: bugref:9288 Use new implementation of DHCP server (VCC 10 and GCC 4.4.4 support).

File:
1 edited

Legend:

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

    r75569 r75614  
    589589    /** @todo r=bird: Visual C++ 2010 does not grok this use of 'auto'. */
    590590    // XXX: debug
    591     for (auto it: m_GlobalOptions) {
    592         std::shared_ptr<DhcpOption> opt(it.second);
     591    for (optmap_t::const_iterator it = m_GlobalOptions.begin(); it != m_GlobalOptions.end(); ++it) {
     592        std::shared_ptr<DhcpOption> opt(it->second);
    593593
    594594        octets_t data;
     
    596596
    597597        bool space = false;
    598         for (auto c: data) {
     598        for (octets_t::const_iterator itData = data.begin(); itData != data.end(); ++itData) {
     599            uint8_t c = *itData;
    599600            if (space)
    600601                std::cout << " ";
     
    854855    optmap << new OptSubnetMask(m_IPv4Netmask);
    855856
    856     for (auto optreq: reqOpts.value())
    857     {
     857    const OptParameterRequest::value_t& reqValue = reqOpts.value();
     858    for (octets_t::const_iterator itOptReq = reqValue.begin(); itOptReq != reqValue.end(); ++itOptReq)
     859    {
     860        uint8_t optreq = *itOptReq;
    858861        std::cout << ">>> requested option " << (int)optreq << std::endl;
    859862
     
    890893    if (vmopts != NULL)
    891894    {
    892         for (auto it: *vmopts) {
    893             std::shared_ptr<DhcpOption> opt(it.second);
     895        for (optmap_t::const_iterator it = vmopts->begin(); it != vmopts->end(); ++it) {
     896            std::shared_ptr<DhcpOption> opt(it->second);
    894897            if (optmap.count(opt->optcode()) == 0 && opt->optcode() > 127)
    895898            {
     
    900903    }
    901904
    902     for (auto it: m_GlobalOptions) {
    903         std::shared_ptr<DhcpOption> opt(it.second);
     905    for (optmap_t::const_iterator it = m_GlobalOptions.begin(); it != m_GlobalOptions.end(); ++it) {
     906        std::shared_ptr<DhcpOption> opt(it->second);
    904907        if (optmap.count(opt->optcode()) == 0 && opt->optcode() > 127)
    905908        {
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