VirtualBox

Ignore:
Timestamp:
May 19, 2010 2:46:02 PM (15 years ago)
Author:
vboxsync
Message:

IntNet: Added Interface, Interface private data passing for per-interface based VBoxNetFlt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c

    r29635 r29662  
    433433 * @copydoc INTNETTRUNKIFPORT::pfnXmit
    434434 */
    435 static DECLCALLBACK(int) vboxNetFltPortXmit(PINTNETTRUNKIFPORT pIfPort, PINTNETSG pSG, uint32_t fDst)
     435static DECLCALLBACK(int) vboxNetFltPortXmit(PINTNETTRUNKIFPORT pIfPort, void *pvIfData, PINTNETSG pSG, uint32_t fDst)
    436436{
    437437    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    454454        if (    !ASMAtomicUoReadBool(&pThis->fDisconnectedFromHost)
    455455            ||  vboxNetFltMaybeRediscovered(pThis))
    456             rc = vboxNetFltPortOsXmit(pThis, pSG, fDst);
     456            rc = vboxNetFltPortOsXmit(pThis, pvIfData, pSG, fDst);
    457457        vboxNetFltRelease(pThis, true /* fBusy */);
    458458    }
     
    537537 * @copydoc INTNETTRUNKIFPORT::pfnNotifyMacAddress
    538538 */
    539 static DECLCALLBACK(void) vboxNetFltPortNotifyMacAddress(PINTNETTRUNKIFPORT pIfPort, INTNETIFHANDLE hIf, PCRTMAC pMac)
     539static DECLCALLBACK(void) vboxNetFltPortNotifyMacAddress(PINTNETTRUNKIFPORT pIfPort, void *pvIfData, PCRTMAC pMac)
    540540{
    541541    PVBOXNETFLTINS pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    548548
    549549    vboxNetFltRetain(pThis, false /* fBusy */);
    550     vboxNetFltPortOsNotifyMacAddress(pThis, hIf, pMac);
     550    vboxNetFltPortOsNotifyMacAddress(pThis, pvIfData, pMac);
    551551    vboxNetFltRelease(pThis, false /* fBusy */);
    552552}
     
    556556 * @copydoc INTNETTRUNKIFPORT::pfnConnectInterface
    557557 */
    558 static DECLCALLBACK(int) vboxNetFltPortConnectInterface(PINTNETTRUNKIFPORT pIfPort, INTNETIFHANDLE hIf)
     558static DECLCALLBACK(int) vboxNetFltPortConnectInterface(PINTNETTRUNKIFPORT pIfPort, void *pvIf, void *ppvIfData, INTNETIFHANDLE hIf)
    559559{
    560560    PVBOXNETFLTINS  pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    568568
    569569    vboxNetFltRetain(pThis, false /* fBusy */);
    570     rc = vboxNetFltPortOsConnectInterface(pThis, hIf);
     570    rc = vboxNetFltPortOsConnectInterface(pThis, pvIf, ppvIfData);
    571571    vboxNetFltRelease(pThis, false /* fBusy */);
    572572
     
    578578 * @copydoc INTNETTRUNKIFPORT::pfnDisconnectInterface
    579579 */
    580 static DECLCALLBACK(void) vboxNetFltPortDisconnectInterface(PINTNETTRUNKIFPORT pIfPort, INTNETIFHANDLE hIf)
     580static DECLCALLBACK(void) vboxNetFltPortDisconnectInterface(PINTNETTRUNKIFPORT pIfPort, void *pvIfData)
    581581{
    582582    PVBOXNETFLTINS  pThis = IFPORT_2_VBOXNETFLTINS(pIfPort);
     
    590590
    591591    vboxNetFltRetain(pThis, false /* fBusy */);
    592     rc = vboxNetFltPortOsDisconnectInterface(pThis, hIf);
     592    rc = vboxNetFltPortOsDisconnectInterface(pThis, pvIfData);
    593593    vboxNetFltRelease(pThis, false /* fBusy */);
    594594    AssertRC(rc); /** @todo fix vboxNetFltPortOsDisconnectInterface. */
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