VirtualBox

Changeset 8715 in vbox


Ignore:
Timestamp:
May 8, 2008 2:41:13 PM (17 years ago)
Author:
vboxsync
Message:

Fix using several NAT adapters in a single VM.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmdrv.h

    r8155 r8715  
    806806#ifdef IN_RING3
    807807/**
     808 * @copydoc PDMDRVHLP::pfnSSMRegister
     809 */
     810DECLINLINE(int) PDMDrvHlpSSMRegister(PPDMDRVINS pDrvIns, const char *pszName, uint32_t u32Instance, uint32_t u32Version, size_t cbGuess,
     811                                     PFNSSMDRVSAVEPREP pfnSavePrep, PFNSSMDRVSAVEEXEC pfnSaveExec, PFNSSMDRVSAVEDONE pfnSaveDone,
     812                                     PFNSSMDRVLOADPREP pfnLoadPrep, PFNSSMDRVLOADEXEC pfnLoadExec, PFNSSMDRVLOADDONE pfnLoadDone)
     813{
     814    return pDrvIns->pDrvHlp->pfnSSMRegister(pDrvIns, pszName, u32Instance, u32Version, cbGuess,
     815                                            pfnSavePrep, pfnSaveExec, pfnSaveDone,
     816                                            pfnLoadPrep, pfnLoadExec, pfnLoadDone);
     817}
     818
     819
     820/**
    808821 * @copydoc PDMDRVHLP::pfnSTAMRegister
    809822 */
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r8404 r8715  
    512512                     * engine after we loaded a guest state.
    513513                     */
    514                     rc2 = pDrvIns->pDrvHlp->pfnSSMRegister(pDrvIns, pDrvIns->pDrvReg->szDriverName, 0, 0,
    515                                                            pDrvIns->iInstance, NULL, NULL, NULL, NULL, NULL,
    516                                                            drvNATLoadDone);
     514                    rc2 = PDMDrvHlpSSMRegister(pDrvIns, pDrvIns->pDrvReg->szDriverName,
     515                                               pDrvIns->iInstance, 0, 0,
     516                                               NULL, NULL, NULL, NULL, NULL, drvNATLoadDone);
    517517                    AssertRC(rc2);
    518518                    pDrvIns->pDrvHlp->pfnPDMPollerRegister(pDrvIns, drvNATPoller);
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