VirtualBox

Changeset 79825 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 16, 2019 10:01:01 PM (5 years ago)
Author:
vboxsync
Message:

Dhcpd: Removed some old test code. bugref:9288

Location:
trunk/src/VBox/NetworkServices/Dhcpd
Files:
2 edited

Legend:

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

    r79824 r79825  
    11581158    }
    11591159
    1160 
    1161 #if 0 /* bird disabled this as it looks dubious and testing only. */
    1162     /** @todo XXX: testing ... */
    1163     if (vmopts != NULL)
    1164     {
    1165         for (optmap_t::const_iterator it = vmopts->begin(); it != vmopts->end(); ++it)
    1166         {
    1167             std::shared_ptr<DhcpOption> opt(it->second);
    1168             if (a_rRetOpts.count(opt->optcode()) == 0 && opt->optcode() > 127)
    1169             {
    1170                 a_rRetOpts << opt;
    1171                 LogRel2(("... forcing VM option %d (%#x)\n", opt->optcode(), opt->optcode()));
    1172             }
    1173         }
    1174     }
    1175 
    1176     for (optmap_t::const_iterator it = m_GlobalOptions.begin(); it != m_GlobalOptions.end(); ++it)
    1177     {
    1178         std::shared_ptr<DhcpOption> opt(it->second);
    1179         if (a_rRetOpts.count(opt->optcode()) == 0 && opt->optcode() > 127)
    1180         {
    1181             a_rRetOpts << opt;
    1182             LogRel2(("... forcing global option %d (%#x)", opt->optcode(), opt->optcode()));
    1183         }
    1184     }
    1185 #endif
    1186 
    11871160    return a_rRetOpts;
    11881161}
  • trunk/src/VBox/NetworkServices/Dhcpd/DHCPD.cpp

    r79819 r79825  
    332332    ack->addOptions(m_pConfig->getOptionsForClient(replyOptions, optlist, vecConfigs));
    333333
    334     /** @todo r=bird: Sec 9.9 in rfc-2132 indicates the server only sends this in NACKs. Test code? */
    335     ack->addOption(OptMessage("Ok, ok, here it is"));
    336 
    337334    ack->maybeUnicast(req);
    338335    return ack.release();
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