VirtualBox

Ignore:
Timestamp:
Oct 10, 2022 7:32:33 PM (2 years ago)
Author:
vboxsync
Message:

Networkservices: Further cleanup and consolidation, get rid of the almost useless IntNetIf helper class and add methods to the low level code offering the missing functionality there, bugref:10297

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/VBoxNetDhcpd.cpp

    r97077 r97078  
    176176    if (m_hIf != NULL)
    177177    {
    178         int rc = IntNetR3IfCtxDestroy(m_hIf);
     178        int rc = IntNetR3IfDestroy(m_hIf);
    179179        AssertRC(rc);
    180180        m_hIf = NULL;
     
    227227        enmTrunkType = kIntNetTrunkType_WhateverNone;
    228228
    229     int rc = IntNetR3IfCtxCreate(&m_hIf, strNetwork.c_str(), enmTrunkType,
    230                                  strTrunk.c_str(), _128K /*cbSend*/, _256K /*cbRecv*/,
    231                                  0 /*fFlags*/);
     229    int rc = IntNetR3IfCreateEx(&m_hIf, strNetwork.c_str(), enmTrunkType,
     230                                strTrunk.c_str(), _128K /*cbSend*/, _256K /*cbRecv*/,
     231                                0 /*fFlags*/);
    232232    if (RT_SUCCESS(rc))
    233233    {
    234         rc = IntNetR3IfCtxQueryBufferPtr(m_hIf, &m_pIfBuf);
     234        rc = IntNetR3IfQueryBufferPtr(m_hIf, &m_pIfBuf);
    235235        if (RT_SUCCESS(rc))
    236             rc = IntNetR3IfCtxSetActive(m_hIf, true /*fActive*/);
     236            rc = IntNetR3IfSetActive(m_hIf, true /*fActive*/);
    237237    }
    238238
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