VirtualBox

Changeset 54504 in vbox


Ignore:
Timestamp:
Feb 25, 2015 4:31:44 PM (10 years ago)
Author:
vboxsync
Message:

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).

Location:
trunk/src/VBox/NetworkServices/DHCP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

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