Changeset 49842 in vbox for trunk/src/VBox/NetworkServices/DHCP
- Timestamp:
- Dec 9, 2013 1:49:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r49838 r49842 93 93 94 94 int init(); 95 int run(void);96 95 void usage(void) { /* XXX: document options */ }; 97 96 int parseOpt(int rc, const RTGETOPTUNION& getOptVal); … … 283 282 } 284 283 285 /**286 * Runs the DHCP server.287 *288 * @returns exit code + error message to stderr on failure, won't return on289 * success (you must kill this process).290 */291 int VBoxNetDhcp::run(void)292 {293 doReceiveLoop();294 return 0;295 }296 297 284 298 285 int VBoxNetDhcp::processUDP(void *pv, size_t cbPv) … … 306 293 { 307 294 m_uCurMsgType = uMsgType; 308 handleDhcpMsg(uMsgType, pDhcpMsg, cbPv); 295 { 296 /* To avoid fight with event processing thread */ 297 VBoxNetALock(this); 298 handleDhcpMsg(uMsgType, pDhcpMsg, cbPv); 299 } 309 300 m_uCurMsgType = UINT8_MAX; 310 301 } … … 565 556 566 557 { 558 VBoxNetALock(this); 567 559 ConfigurationManager *confManager = ConfigurationManager::getConfigurationManager(); 568 560 confManager->flushAddressList(RTNET_DHCP_OPT_DNS);
Note:
See TracChangeset
for help on using the changeset viewer.