Changeset 52592 in vbox for trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
- Timestamp:
- Sep 3, 2014 8:23:24 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95866
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r51092 r52592 1532 1532 if (uComponentStatus == 0) 1533 1533 { 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 } 1536 1550 } 1537 1551 } … … 1563 1577 } 1564 1578 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 */ 1565 1586 netIfListHostAdapters(list); 1566 1587
Note:
See TracChangeset
for help on using the changeset viewer.