Changeset 79825 in vbox for trunk/src/VBox
- Timestamp:
- Jul 16, 2019 10:01:01 PM (5 years ago)
- Location:
- trunk/src/VBox/NetworkServices/Dhcpd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/Dhcpd/Config.cpp
r79824 r79825 1158 1158 } 1159 1159 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 #endif1186 1187 1160 return a_rRetOpts; 1188 1161 } -
trunk/src/VBox/NetworkServices/Dhcpd/DHCPD.cpp
r79819 r79825 332 332 ack->addOptions(m_pConfig->getOptionsForClient(replyOptions, optlist, vecConfigs)); 333 333 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 337 334 ack->maybeUnicast(req); 338 335 return ack.release();
Note:
See TracChangeset
for help on using the changeset viewer.