VirtualBox

Ignore:
Timestamp:
Sep 3, 2014 8:23:24 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95866
Message:

NetFlt/win: NDIS6: fixes, enable disconnect interface, PM support for NetAdp6, installer helper functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/NetIf-win.cpp

    r51092 r52592  
    15321532                                                    if (uComponentStatus == 0)
    15331533                                                    {
    1534                                                         vboxNetWinAddComponent(&list, pMpNcc, HostNetworkInterfaceType_Bridged,
    1535                                                                                iDefault);
     1534                                                        LPWSTR pId;
     1535                                                        hr = pMpNcc->GetId(&pId);
     1536                                                        Assert(hr == S_OK);
     1537                                                        if (hr == S_OK)
     1538                                                        {
     1539                                                            if (!_wcsnicmp(pId, L"sun_VBoxNetAdp6", sizeof(L"sun_VBoxNetAdp6")/2))
     1540                                                            {
     1541                                                                vboxNetWinAddComponent(&list, pMpNcc, HostNetworkInterfaceType_HostOnly, -1);
     1542                                                            }
     1543                                                            else
     1544                                                            {
     1545                                                                vboxNetWinAddComponent(&list, pMpNcc, HostNetworkInterfaceType_Bridged,
     1546                                                                                       iDefault);
     1547                                                            }
     1548                                                            CoTaskMemFree(pId);
     1549                                                        }
    15361550                                                    }
    15371551                                                }
     
    15631577    }
    15641578
     1579    /*
     1580     * There are two places where host-only adapters get added to the list.
     1581     * The following call adds NDIS5 miniports while NDIS6 miniports are
     1582     * added in the loop above. This is because NDIS6 miniports are in fact
     1583     * used as bridged adapters, they have netlwf filter installed in their
     1584     * stack and as a result they show up during bridged adapter enumeration.
     1585     */
    15651586    netIfListHostAdapters(list);
    15661587
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette