VirtualBox

Changeset 17229 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 2, 2009 9:51:38 AM (16 years ago)
Author:
vboxsync
Message:

NetAdp/win: make the comment-to adapter name to be honored in the driver, make MAC address to be loaded/stored from/to the registry

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r17214 r17229  
    653653 *
    654654 * If I'm wrong, then please explain in full.
     655 *
     656 * r=misha: this code is to prevent race conditions between PVBOXNETFLTINS construct (which occurs on binding to adapter
     657 * rather than on vboxNetFltFactoryCreateAndConnect for static_config) and destruction,
     658 * namely the instance returned by vboxNetFltFindInstanceLocked in vboxNetFltSearchCreateInstance could be actually the instance being removed.
     659 * I guess an approach similar to what you added to vboxNetFltFactoryCreateAndConnect could be used in vboxNetFltSearchCreateInstance in this case we could remove
     660 * this ugly hack.
    655661 */
    656662    if (cRefs != 0)
     
    11421148    AssertRCReturn(rc, rc);
    11431149
    1144 #if defined(VBOX_TAPMINIPORT) && defined(RT_OS_WINDOWS)
    1145     /* temporary hack to pick up the first adapter */
    1146     pCur = pGlobals->pInstanceHead; /** @todo Don't for get to remove this temporary hack... :-) */
    1147 #else
     1150//#if defined(VBOX_TAPMINIPORT) && defined(RT_OS_WINDOWS)
     1151//    /* temporary hack to pick up the first adapter */
     1152//    pCur = pGlobals->pInstanceHead; /** @todo Don't for get to remove this temporary hack... :-) */
     1153//#else
    11481154    pCur = vboxNetFltFindInstanceLocked(pGlobals, pszName);
    1149 #endif
     1155//#endif
    11501156    if (pCur)
    11511157    {
  • trunk/src/VBox/Main/win/NetIfList-win.cpp

    r17174 r17229  
    610610                ULONG uComponentStatus;
    611611                hr = pMpNcc->GetDeviceStatus(&uComponentStatus);
    612 #ifndef DEBUG_bird
    613                 Assert(hr == S_OK);
    614 #endif
     612//#ifndef DEBUG_bird
     613//                Assert(hr == S_OK);
     614//#endif
    615615                if(hr == S_OK)
    616616                {
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