VirtualBox

vbox的更動 54504 路徑 trunk/src/VBox/NetworkServices


忽略:
時間撮記:
2015-2-25 下午04:31:44 (10 年 以前)
作者:
vboxsync
訊息:

VBoxNetDHCP: Drag kicking and screaming VBoxNetDhcp::m_DhcpServer to
NetworkManager::processParameterReqList() so that we can interrorgate
it about DHCP options configured via API (though don't do it just yet).

位置:
trunk/src/VBox/NetworkServices/DHCP
檔案:
修改 3 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/NetworkServices/DHCP/Config.cpp

    r54499 r54504  
    699699    RTNETADDRIPV4 m_OurNetmask;
    700700    RTMAC m_OurMac;
     701
     702    ComPtr<IDHCPServer>  m_DhcpServer;
    701703    const VBoxNetHlpUDPService *m_service;
    702704};
     
    716718
    717719
    718 NetworkManager *NetworkManager::getNetworkManager()
     720NetworkManager *NetworkManager::getNetworkManager(ComPtr<IDHCPServer> aDhcpServer)
    719721{
    720722    if (!g_NetworkManager)
     723    {
    721724        g_NetworkManager = new NetworkManager();
     725        g_NetworkManager->m->m_DhcpServer = aDhcpServer;
     726    }
    722727
    723728    return g_NetworkManager;
  • trunk/src/VBox/NetworkServices/DHCP/Config.h

    r54499 r54504  
    2121#include <iprt/asm-math.h>
    2222#include <iprt/cpp/utils.h>
     23
     24#include <VBox/com/ptr.h>
    2325#include <VBox/com/string.h>
     26#include <VBox/com/VirtualBox.h>
    2427
    2528#include "../NetLib/cpp/utils.h"
     
    490493{
    491494public:
    492     static NetworkManager *getNetworkManager();
     495    static NetworkManager *getNetworkManager(ComPtr<IDHCPServer> aDhcpServer = ComPtr<IDHCPServer>());
    493496
    494497    const RTNETADDRIPV4& getOurAddress() const;
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r54499 r54504  
    292292    AssertRCReturn(rc, rc);
    293293
    294     m_NetworkManager = NetworkManager::getNetworkManager();
     294    m_NetworkManager = NetworkManager::getNetworkManager(m_DhcpServer);
    295295    AssertPtrReturn(m_NetworkManager, VERR_INTERNAL_ERROR);
    296296
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette