vbox的更動 54504 路徑 trunk/src/VBox/NetworkServices
- 時間撮記:
- 2015-2-25 下午04:31:44 (10 年 以前)
- 位置:
- trunk/src/VBox/NetworkServices/DHCP
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器