Changeset 75614 in vbox for trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
- Timestamp:
- Nov 20, 2018 11:41:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r75569 r75614 589 589 /** @todo r=bird: Visual C++ 2010 does not grok this use of 'auto'. */ 590 590 // 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); 593 593 594 594 octets_t data; … … 596 596 597 597 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; 599 600 if (space) 600 601 std::cout << " "; … … 854 855 optmap << new OptSubnetMask(m_IPv4Netmask); 855 856 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; 858 861 std::cout << ">>> requested option " << (int)optreq << std::endl; 859 862 … … 890 893 if (vmopts != NULL) 891 894 { 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); 894 897 if (optmap.count(opt->optcode()) == 0 && opt->optcode() > 127) 895 898 { … … 900 903 } 901 904 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); 904 907 if (optmap.count(opt->optcode()) == 0 && opt->optcode() > 127) 905 908 {
Note:
See TracChangeset
for help on using the changeset viewer.