VirtualBox

Ignore:
Timestamp:
Oct 28, 2010 9:27:05 AM (14 years ago)
Author:
vboxsync
Message:

*: spelling fixes, thanks Timeless!

Location:
trunk/src/VBox/HostDrivers/VBoxNetFlt/win
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/NetFltInstall.cpp

    r28800 r33540  
    3232}
    3333
    34 /** Wrapper aroung GetfullPathNameW that will try an alternative INF location.
     34/** Wrapper around GetfullPathNameW that will try an alternative INF location.
    3535 *
    3636 * The default location is the current directory.  If not found there, the
    37  * alternative locatoin is the executable directory.  If not found there either,
     37 * alternative location is the executable directory.  If not found there either,
    3838 * the first alternative is present to the caller.
    3939 */
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c

    r30007 r33540  
    4141
    4242/**
    43  * represents the queue of jobs processed by the worker thred
     43 * represents the queue of jobs processed by the worker thread
    4444 *
    4545 * we use the thread to process tasks which are required to be done at passive level
     
    508508    if (pMyPacket)
    509509    {
    510         /* we have successfuly initialized our packet, post it to the host or to the wire */
     510        /* we have successfully initialized our packet, post it to the host or to the wire */
    511511        if(bSrcHost)
    512512        {
     
    601601     * Besides that the NDIS_PACKET contained in the queue could be either the one passed to us in our send/receive callback
    602602     * or the one created by us. The latter is possible in case our ProtocolReceive callback is called and we call NdisTransferData
    603      * in this case we need to allocate the packet the data to be transfered to.
     603     * in this case we need to allocate the packet the data to be transferred to.
    604604     * If the enqueued packet is the one allocated by us the PACKET_MINE flag is set
    605605     * */
     
    18261826
    18271827/*
    1828  * frees NDIS_PACKET creaed with vboxNetFltWinNdisPacketFromSG
     1828 * frees NDIS_PACKET created with vboxNetFltWinNdisPacketFromSG
    18291829 */
    18301830DECLHIDDEN(void) vboxNetFltWinFreeSGNdisPacket(PNDIS_PACKET pPacket, bool bFreeMem)
     
    21572157        int rc;
    21582158        PVBOXNETFLTINS pInstance;
    2159         USHORT cbAnsiName = pBindToMiniportName->Length;/* the lenght is is bytes ; *2 ;RtlUnicodeStringToAnsiSize(pBindToMiniportName)*/
     2159        USHORT cbAnsiName = pBindToMiniportName->Length;/* the length is is bytes ; *2 ;RtlUnicodeStringToAnsiSize(pBindToMiniportName)*/
    21602160        CREATE_INSTANCE_CONTEXT Context;
    21612161        RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;
     
    29872987        }
    29882988
    2989         /* it's interupted */
     2989        /* it's interrupted */
    29902990        rc = VERR_INTERRUPTED;
    29912991    }
     
    31113111/*    Assert(!pThis->fActive); */
    31123112
    3113     /* paranoya to ensyre the instance is not removed while we're waiting on the mutex
     3113    /* paranoia to ensyre the instance is not removed while we're waiting on the mutex
    31143114     * in case ndis does something unpredictable, e.g. calls our miniport halt independently
    31153115     * from protocol unbind and concurrently with it*/
     
    31483148            Assert(vboxNetFltWinGetOpState(&pAdapt->PTState) == kVBoxNetDevOpState_Deinitialized);
    31493149#endif
    3150 //            /* paranoya */
     3150//            /* paranoia */
    31513151//            vboxNetFltWinSetOpState(&pAdapt->MPState, kVBoxNetDevOpState_Deinitialized);
    31523152//#ifndef VBOXNETADP
     
    33173317                            Assert(vboxNetFltWinGetOpState(&pAdapt->PTState) == kVBoxNetDevOpState_Initialized);
    33183318#endif
    3319 //                            /* paranoya */
     3319//                            /* paranoia */
    33203320////                            vboxNetFltWinSetAdaptState(&pAdapt->MPState, kVBoxNetDevOpState_Initialized);
    33213321//#ifndef VBOXNETADP
     
    33643364            Assert(vboxNetFltWinGetOpState(&pAdapt->PTState) == kVBoxNetDevOpState_Deinitialized);
    33653365#endif
    3366 //            /* paranoya */
     3366//            /* paranoia */
    33673367//            vboxNetFltWinSetOpState(&pAdapt->MPState, kVBoxNetDevOpState_Deinitialized);
    33683368//#ifndef VBOXNETADP
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.h

    r30111 r33540  
    898898
    899899/* convenience method used which allocates and initializes the PINTNETSG containing one
    900  * segment refering the buffer of size cbBufSize
     900 * segment referring the buffer of size cbBufSize
    901901 * the allocated PINTNETSG should be freed with the vboxNetFltWinMemFree.
    902902 *
     
    10041004
    10051005/**************************************************************
    1006  * utility methofs for ndis packet creation/initialization    *
     1006 * utility methods for ndis packet creation/initialization    *
    10071007 **************************************************************/
    10081008
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltCommon-win.h

    r32338 r33540  
    11/* $Id$ */
    22/** @file
    3  * VBoxNetFltCommon.h - Network Filter Driver (Host), Windows Specific Code. Common headeer with commonly used defines and decls
     3 * VBoxNetFltCommon.h - Network Filter Driver (Host), Windows Specific Code. Common header with commonly used defines and decls
    44 */
    55
     
    182182 * i.e. we could use it on our needs and should not return it
    183183 * we are enqueueing "our" packets on ProtocolReceive call-back when
    184  * Ndis does not give us a receive acket (the driver below us has called NdisM..IndicateReceive)
     184 * Ndis does not give us a receive packet (the driver below us has called NdisM..IndicateReceive)
    185185 * this is supported for Ndis Packet only */
    186186#define PACKET_MINE                 0x00000004
     
    212212/*
    213213 * we are using non-interlocked versions of LIST_ENTRY-related operations macros and synchronize
    214  * access to the queue and its elements by aquiring/releasing a spinlock using Ndis[Acquire,Release]Spinlock
     214 * access to the queue and its elements by acquiring/releasing a spinlock using Ndis[Acquire,Release]Spinlock
    215215 *
    216216 * we are NOT using interlocked versions of insert/remove head/tail list functions because we need to iterate though
     
    395395    NDIS_HANDLE                    hSendBufferPoolHandle;
    396396    /** open/close adapter status.
    397      * Since ndis adapter open and close requests may complete assynchronously,
     397     * Since ndis adapter open and close requests may complete asynchronously,
    398398     * we are using event mechanism to wait for open/close completion
    399399     * the status field is being set by the completion call-back */
     
    443443} SEND_RSVD, *PSEND_RSVD;
    444444
    445 /** represents the data stored in the protocol recerved field of ndis packet on NdisTransferData processing*/
     445/** represents the data stored in the protocol reserved field of ndis packet on NdisTransferData processing*/
    446446typedef struct _TRANSFERDATA_RSVD
    447447{
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltMp-win.c

    r29592 r33540  
    210210#ifdef VBOXNETFLT_WITH_IOCTL_SECURITY
    211211            /* NdisMRegisterDevice does not offers us the ability to set security attributes */
    212             /* need to do this "manualy" for the device to be accessible by the non-privileged users */
     212            /* need to do this "manually" for the device to be accessible by the non-privileged users */
    213213            Status = vboxNetFltWinSetSecurity(&DeviceLinkUnicodeString);
    214214            Assert(Status == STATUS_SUCCESS);
     
    347347
    348348        Assert(vboxNetFltWinGetOpState(&pAdapt->MPState) == kVBoxNetDevOpState_Initializing);
    349         /* the MP state should be already set to kVBoxNetDevOpState_Initializing, just a paranoya
    350          * in case NDIS for some reason calls us in some unregular way */
     349        /* the MP state should be already set to kVBoxNetDevOpState_Initializing, just a paranoia
     350         * in case NDIS for some reason calls us in some irregular way */
    351351        vboxNetFltWinSetOpState(&pAdapt->MPState, kVBoxNetDevOpState_Initializing);
    352352
     
    496496    /*
    497497     * Set the flag that the miniport below is unbinding, so the request handlers will
    498      * fail any request comming later
     498     * fail any request coming later
    499499     */
    500500    RTSpinlockAcquireNoInts(pNetFlt->hSpinlock, &Tmp);
     
    11511151
    11521152/**
    1153  * This routine does all the procssing for a request with a SetPower Oid
     1153 * This routine does all the processing for a request with a SetPower Oid
    11541154 * The miniport shoud accept  the Set Power and transition to the new state
    11551155 *
     
    16161616        case OID_GEN_MEDIA_IN_USE:
    16171617            //
    1618             // Specifiy a complete list of the media types that the NIC
     1618            // Specify a complete list of the media types that the NIC
    16191619            // currently uses.
    16201620            //
     
    16501650        case OID_GEN_MAXIMUM_FRAME_SIZE:
    16511651            //
    1652             // Specifiy the maximum network packet size, in bytes, that the
     1652            // Specify the maximum network packet size, in bytes, that the
    16531653            // NIC supports excluding the header. A NIC driver that emulates
    16541654            // another medium type for binding to a transport must ensure that
     
    18371837        case OID_GEN_CURRENT_PACKET_FILTER:
    18381838            //
    1839             // Specifiy the types of net packets such as directed, broadcast
     1839            // Specify the types of net packets such as directed, broadcast
    18401840            // multicast, for which a protocol receives indications from a
    18411841            // NIC driver. After NIC is initialized, a protocol driver
     
    18951895            // Return the MAC address the NIC is currently programmed to
    18961896            // use. Note that this address could be different from the
    1897             // permananent address as the user can override using
     1897            // permanent address as the user can override using
    18981898            // registry. Read NdisReadNetworkAddress doc for more info.
    18991899            //
     
    21292129
    21302130    //
    2131     // Program the hardware to add suport for these muticast addresses
     2131    // Program the hardware to add support for these multicast addresses
    21322132    //
    21332133
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltPt-win.c

    r32338 r33540  
    2828/** protocol handle */
    2929static NDIS_HANDLE         g_hProtHandle = NULL;
    30 /** medium array used while opening underlying adaprot
     30/** medium array used while opening underlying adaptor
    3131 * we are actually binding to NdisMedium802_3 and NdisMediumWan
    3232 * as specified in VBoxNetFlt.inf:
     
    161161 * @param DeviceName         - Device name to bind to. This is passed to NdisOpenAdapter.
    162162 * @param SystemSpecific1    - Can be passed to NdisOpenProtocolConfiguration to read per-binding information
    163  * @paran SystemSpecific2    - Unused
     163 * @param SystemSpecific2    - Unused
    164164 * @return NDIS_STATUS_PENDING    if this call is pended. In this case call NdisCompleteBindAdapter to complete.
    165165 *                                Anything else          Completes this call synchronously */
     
    297297    /*
    298298     * Set the flag that the miniport below is unbinding, so the request handlers will
    299      * fail any request comming later
     299     * fail any request coming later
    300300     */
    301301    RTSpinlockAcquireNoInts(pNetFlt->hSpinlock, &Tmp);
     
    513513    if(pSynchRequest == NdisRequest)
    514514    {
    515         /* assynchronous completion of our synch request */
     515        /* asynchronous completion of our sync request */
    516516
    517517        /*1.set the status */
     
    789789#endif
    790790        {
    791             /* if the ptk is zerro - the ptk was originated by netFlt send/receive
     791            /* if the ptk is zero - the ptk was originated by netFlt send/receive
    792792             * need to free packet buffers */
    793793            PVOID pBufToFree = SendRsvd->pBufToFree;
     
    856856
    857857        /*
    858          * pAdapt->ReceviePacketCount must be less than MAX_RECEIVE_PACKET_ARRAY_SIZE because
     858         * pAdapt->ReceivePacketCount must be less than MAX_RECEIVE_PACKET_ARRAY_SIZE because
    859859         * the thread which held the pVElan->Lock before should already indicate the packet(s)
    860          * up if pAdapt->ReceviePacketCount == MAX_RECEIVE_PACKET_ARRAY_SIZE.
     860         * up if pAdapt->ReceivePacketCount == MAX_RECEIVE_PACKET_ARRAY_SIZE.
    861861         */
    862862        pAdapt->aReceivedPackets[pAdapt->cReceivedPacketCount] = Packet;
     
    875875        /*
    876876         *  If our receive packet array is full, or the miniport below indicated the packets
    877          *  with resources, do the indicatin now.
     877         *  with resources, do the indicating now.
    878878         */
    879879
     
    905905        {
    906906            /* the tcp stack can send ACK packets right in the context of its PtReceive for this packet,
    907              * and thoose (tcp-sent) packets can be looped back again.
     907             * and those (tcp-sent) packets can be looped back again.
    908908             * If this happens there is a possibility that new RX packets are received by us
    909909             * after we do this NdisMIndicateReceivePacket and before we do a new NdisMIndicateReceivePacket
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/WinNetConfig.cpp

    r28800 r33540  
    14691469 * @param pencbp Binding path enumerator reference.
    14701470 * @param ppncbp Address the Binding path reference to be stored to
    1471  * @return S_OK on sucess, otherwise an error code.
     1471 * @return S_OK on success, otherwise an error code.
    14721472 */
    14731473VBOXNETCFGWIN_DECL(HRESULT)
     
    25912591            /* if the function failed and GetLastError() returned
    25922592             * ERROR_NO_MORE_ITEMS, then we have reached the end of the
    2593              * list.  Othewise there was something wrong with this
     2593             * list.  Otherwise there was something wrong with this
    25942594             * particular driver. */
    25952595            if (!ret)
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