VirtualBox

Ignore:
Timestamp:
Oct 20, 2021 11:47:48 AM (3 years ago)
Author:
vboxsync
Message:

Devices/Network: Change the network drivers to access the CFGM API through the driver helper callback table only, bugref:10074 [some missing calls to CFGMR3*]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r91872 r91883  
    13771377    RT_NOREF(pNetwork); /** @todo figure why pNetwork isn't used */
    13781378
    1379     PCFGMNODE pPFTree = CFGMR3GetChild(pCfg, "PortForwarding");
     1379    PCFGMNODE pPFTree = pHlp->pfnCFGMGetChild(pCfg, "PortForwarding");
    13801380    if (pPFTree == NULL)
    13811381        return VINF_SUCCESS;
     
    15311531    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    15321532    PDRVNAT         pThis = PDMINS_2_DATA(pDrvIns, PDRVNAT);
     1533    PCPDMDRVHLPR3   pHlp  = pDrvIns->pHlpR3;
    15331534
    15341535    LogFlow(("drvNATConstruct:\n"));
     
    16851686            {                                                   \
    16861687                int len = 0;                                    \
    1687                 rc = CFGMR3QueryS32(pCfg, name, &len);    \
     1688                rc = pHlp->pfnCFGMQueryS32(pCfg, name, &len);    \
    16881689                if (RT_SUCCESS(rc))                             \
    16891690                    setter(pThis->pNATState, len);              \
     
    17031704
    17041705#ifdef VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER
    1705         PCFGMNODE pMappingsCfg = CFGMR3GetChild(pCfg, "HostResolverMappings");
     1706        PCFGMNODE pMappingsCfg = pHlp->pfnCFGMGetChild(pCfg, "HostResolverMappings");
    17061707
    17071708        if (pMappingsCfg)
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