Changeset 55365 in vbox for trunk/src/VBox/NetworkServices/DHCP
- Timestamp:
- Apr 22, 2015 9:34:46 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99701
- Location:
- trunk/src/VBox/NetworkServices/DHCP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/NetworkManagerDhcp.cpp
r49735 r55365 55 55 { 56 56 RawOption opt; 57 memset(&opt, 0, sizeof(RawOption)); 57 RT_ZERO(opt); 58 58 59 /* 1. Find client */ 59 60 ConfigurationManager *confManager = ConfigurationManager::getConfigurationManager(); -
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r54700 r55365 221 221 m_cbCurMsg = 0; 222 222 m_pCurMsg = NULL; 223 memset(&m_CurHdrs, '\0', sizeof(m_CurHdrs));223 RT_ZERO(m_CurHdrs); 224 224 225 225 m_fIgnoreCmdLineParameters = true; … … 499 499 */ 500 500 AssertRCReturn(virtualbox.isNull(), VERR_INTERNAL_ERROR); 501 std::string networkName = getNetwork ();501 std::string networkName = getNetworkName(); 502 502 503 503 int rc = findDhcpServer(virtualbox, networkName, m_DhcpServer); … … 616 616 { 617 617 ComPtr <INATNetworkStartStopEvent> pStartStopEvent = pEvent; 618 619 com::Bstr networkName; 620 HRESULT hrc = pStartStopEvent->COMGETTER(NetworkName)(networkName.asOutParam()); 621 AssertComRCReturn(hrc, hrc); 622 if (networkName.compare(getNetworkName().c_str())) 623 break; /* change not for our network */ 624 618 625 BOOL fStart = TRUE; 619 HRESULT hrc = pStartStopEvent->COMGETTER(StartEvent)(&fStart); 626 hrc = pStartStopEvent->COMGETTER(StartEvent)(&fStart); 627 AssertComRCReturn(hrc, hrc); 620 628 if (!fStart) 621 629 shutdown();
Note:
See TracChangeset
for help on using the changeset viewer.