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/freebsd/VBoxNetFlt-freebsd.c

    r29491 r29662  
    424424        pSG = RTMemTmpAlloc(RT_OFFSETOF(INTNETSG, aSegs[cSegs]));
    425425        vboxNetFltFreeBSDMBufToSG(pThis, m, pSG, cSegs, 0);
    426         fDropIt = pThis->pSwitchPort->pfnRecv(pThis->pSwitchPort, pSG, INTNETTRUNKDIR_WIRE);
     426        fDropIt = pThis->pSwitchPort->pfnRecv(pThis->pSwitchPort, NULL /* pvIf */, pSG, INTNETTRUNKDIR_WIRE);
    427427        RTMemTmpFree(pSG);
    428428        if (fDropIt)
     
    480480 * Called to deliver a frame to either the host, the wire or both.
    481481 */
    482 int vboxNetFltPortOsXmit(PVBOXNETFLTINS pThis, PINTNETSG pSG, uint32_t fDst)
    483 {
     482int vboxNetFltPortOsXmit(PVBOXNETFLTINS pThis, void *pvIfData, PINTNETSG pSG, uint32_t fDst)
     483{
     484    NOREF(pvIfData);
     485
    484486    void (*input_f)(struct ifnet *, struct mbuf *);
    485487    struct ifnet *ifp;
     
    746748}
    747749
    748 void vboxNetFltPortOsNotifyMacAddress(PVBOXNETFLTINS pThis, INTNETIFHANDLE hIf, PCRTMAC pMac)
    749 {
    750     NOREF(pThis); NOREF(hIf); NOREF(pMac);
    751 }
    752 
    753 int vboxNetFltPortOsConnectInterface(PVBOXNETFLTINS pThis, INTNETIFHANDLE hIf)
     750void vboxNetFltPortOsNotifyMacAddress(PVBOXNETFLTINS pThis, void *pvIfData, PCRTMAC pMac)
     751{
     752    NOREF(pThis); NOREF(pvIfData); NOREF(pMac);
     753}
     754
     755int vboxNetFltPortOsConnectInterface(PVBOXNETFLTINS pThis, void *pvIf, void **ppvIfData)
    754756{
    755757    /* Nothing to do */
    756     NOREF(pThis); NOREF(hIf);
     758    NOREF(pThis); NOREF(pvIf); NOREF(ppvIfData);
    757759    return VINF_SUCCESS;
    758760}
    759761
    760 int vboxNetFltPortOsDisconnectInterface(PVBOXNETFLTINS pThis, INTNETIFHANDLE hIf)
     762int vboxNetFltPortOsDisconnectInterface(PVBOXNETFLTINS pThis, void *pvIfData)
    761763{
    762764    /* Nothing to do */
    763     NOREF(pThis); NOREF(hIf);
     765    NOREF(pThis); NOREF(pvIfData);
    764766    return VINF_SUCCESS;
    765767}
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