Changeset 54504 in vbox
- Timestamp:
- Feb 25, 2015 4:31:44 PM (10 years ago)
- Location:
- trunk/src/VBox/NetworkServices/DHCP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/DHCP/Config.cpp
r54499 r54504 699 699 RTNETADDRIPV4 m_OurNetmask; 700 700 RTMAC m_OurMac; 701 702 ComPtr<IDHCPServer> m_DhcpServer; 701 703 const VBoxNetHlpUDPService *m_service; 702 704 }; … … 716 718 717 719 718 NetworkManager *NetworkManager::getNetworkManager( )720 NetworkManager *NetworkManager::getNetworkManager(ComPtr<IDHCPServer> aDhcpServer) 719 721 { 720 722 if (!g_NetworkManager) 723 { 721 724 g_NetworkManager = new NetworkManager(); 725 g_NetworkManager->m->m_DhcpServer = aDhcpServer; 726 } 722 727 723 728 return g_NetworkManager; -
trunk/src/VBox/NetworkServices/DHCP/Config.h
r54499 r54504 21 21 #include <iprt/asm-math.h> 22 22 #include <iprt/cpp/utils.h> 23 24 #include <VBox/com/ptr.h> 23 25 #include <VBox/com/string.h> 26 #include <VBox/com/VirtualBox.h> 24 27 25 28 #include "../NetLib/cpp/utils.h" … … 490 493 { 491 494 public: 492 static NetworkManager *getNetworkManager( );495 static NetworkManager *getNetworkManager(ComPtr<IDHCPServer> aDhcpServer = ComPtr<IDHCPServer>()); 493 496 494 497 const RTNETADDRIPV4& getOurAddress() const; -
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r54499 r54504 292 292 AssertRCReturn(rc, rc); 293 293 294 m_NetworkManager = NetworkManager::getNetworkManager( );294 m_NetworkManager = NetworkManager::getNetworkManager(m_DhcpServer); 295 295 AssertPtrReturn(m_NetworkManager, VERR_INTERNAL_ERROR); 296 296
Note:
See TracChangeset
for help on using the changeset viewer.