VirtualBox

Changeset 29592 in vbox


Ignore:
Timestamp:
May 18, 2010 7:22:57 AM (15 years ago)
Author:
vboxsync
Message:

netflt/win: fix loopback packets handling for no-packet-queue

File:
1 edited

Legend:

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

    r29108 r29592  
    446446    IN PADAPT             pAdapt,
    447447    IN PNDIS_PACKET           pPacket
     448#ifdef VBOXNETFLT_NO_PACKET_QUEUE
     449    , bool bNetFltActive
     450#endif
    448451    )
    449452{
     
    457460    {
    458461#if !defined(VBOX_LOOPBACK_USEFLAGS) /* || defined(DEBUG_NETFLT_PACKETS) */
     462# ifdef VBOXNETFLT_NO_PACKET_QUEUE
     463        if (bNetFltActive)
     464            vboxNetFltWinLbPutSendPacket(pAdapt, pMyPacket, false /* bFromIntNet */);
     465# else
    459466        /* no need for the loop enqueue & check in a passthru mode , ndis will do everything for us */
     467# endif
    460468#endif
    461469        NdisSend(&fStatus,
     
    466474#ifndef WIN9X
    467475            NdisIMCopySendCompletePerPacketInfo (pPacket, pMyPacket);
     476#endif
     477#if defined(VBOXNETFLT_NO_PACKET_QUEUE) && !defined(VBOX_LOOPBACK_USEFLAGS)
     478        if (bNetFltActive)
     479            vboxNetFltWinLbRemoveSendPacket(pAdapt, pMyPacket);
    468480#endif
    469481            NdisFreePacket(pMyPacket);
     
    838850            {
    839851#ifndef VBOXNETADP
    840                 fStatus = vboxNetFltWinSendPassThru(pAdapt, pPacket);
     852                fStatus = vboxNetFltWinSendPassThru(pAdapt, pPacket
     853#ifdef VBOXNETFLT_NO_PACKET_QUEUE
     854                               , !!cNetFltRefs
     855#endif
     856                        );
    841857#else
    842858                if(!cNetFltRefs)
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