Changeset 75568 in vbox for trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
- Timestamp:
- Nov 19, 2018 11:52:10 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r71749 r75568 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::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::iterator c = data.begin(); c != data.end(); ++c) { 599 599 if (space) 600 600 std::cout << " "; 601 601 else 602 602 space = true; 603 std::cout << (int) c;603 std::cout << (int)*c; 604 604 } 605 605 std::cout << std::endl; … … 854 854 optmap << new OptSubnetMask(m_IPv4Netmask); 855 855 856 for (auto optreq: reqOpts.value()) 857 { 858 std::cout << ">>> requested option " << (int)optreq << std::endl; 859 860 if (optreq == OptSubnetMask::optcode) 856 const OptParameterRequest::value_t& reqValue = reqOpts.value(); 857 for (octets_t::const_iterator optreq = reqValue.begin(); optreq != reqValue.end(); ++optreq) 858 { 859 std::cout << ">>> requested option " << (int)*optreq << std::endl; 860 861 if (*optreq == OptSubnetMask::optcode) 861 862 { 862 863 std::cout << "... always supplied" << std::endl; … … 866 867 if (vmopts != NULL) 867 868 { 868 optmap_t::const_iterator it( vmopts->find( optreq) );869 optmap_t::const_iterator it( vmopts->find(*optreq) ); 869 870 if (it != vmopts->end()) 870 871 { … … 875 876 } 876 877 877 optmap_t::const_iterator it( m_GlobalOptions.find( optreq) );878 optmap_t::const_iterator it( m_GlobalOptions.find(*optreq) ); 878 879 if (it != m_GlobalOptions.end()) 879 880 { … … 890 891 if (vmopts != NULL) 891 892 { 892 for ( auto it: *vmopts) {893 std::shared_ptr<DhcpOption> opt(it .second);893 for (optmap_t::const_iterator it = vmopts->begin(); it != vmopts->end(); ++it) { 894 std::shared_ptr<DhcpOption> opt(it->second); 894 895 if (optmap.count(opt->optcode()) == 0 && opt->optcode() > 127) 895 896 { … … 900 901 } 901 902 902 for ( auto it: m_GlobalOptions) {903 std::shared_ptr<DhcpOption> opt(it .second);903 for (optmap_t::const_iterator it = m_GlobalOptions.begin(); it != m_GlobalOptions.end(); ++it) { 904 std::shared_ptr<DhcpOption> opt(it->second); 904 905 if (optmap.count(opt->optcode()) == 0 && opt->optcode() > 127) 905 906 {
Note:
See TracChangeset
for help on using the changeset viewer.