Changeset 18701 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Apr 3, 2009 3:51:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r18696 r18701 1726 1726 # endif 1727 1727 1728 #elif defined(RT_OS_WINDOWS) 1729 if (fSniffer) 1730 { 1731 rc = CFGMR3InsertNode(pLunL0, "AttachedDriver", &pLunL0); RC_CHECK(); 1732 } 1733 else 1734 { 1735 rc = CFGMR3InsertNode(pInst, "LUN#0", &pLunL0); RC_CHECK(); 1736 } 1737 Bstr hostInterfaceName; 1738 hrc = networkAdapter->COMGETTER(HostInterface)(hostInterfaceName.asOutParam()); H(); 1739 ComPtr<IHostNetworkInterface> hostInterface; 1740 rc = host->FindHostNetworkInterfaceByName(hostInterfaceName, hostInterface.asOutParam()); 1741 if (!SUCCEEDED(rc)) 1742 { 1743 AssertMsgFailed(("Cannot get GUID for host interface '%ls'\n", hostInterfaceName)); 1744 hrc = networkAdapter->Detach(); H(); 1745 } 1746 else 1747 { 1748 # ifdef VBOX_WITH_NETFLT 1749 rc = CFGMR3InsertString(pLunL0, "Driver", "IntNet"); RC_CHECK(); 1750 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK(); 1751 rc = CFGMR3InsertString(pCfg, "Trunk", Utf8Str(hostInterfaceName)); RC_CHECK(); 1752 rc = CFGMR3InsertInteger(pCfg, "TrunkType", kIntNetTrunkType_NetFlt); RC_CHECK(); 1753 # endif 1754 Guid hostIFGuid; 1755 hrc = hostInterface->COMGETTER(Id)(hostIFGuid.asOutParam()); H(); 1756 char szDriverGUID[256] = {0}; 1757 /* add curly brackets */ 1758 szDriverGUID[0] = '{'; 1759 strcpy(szDriverGUID + 1, hostIFGuid.toString().raw()); 1760 strcat(szDriverGUID, "}"); 1761 rc = CFGMR3InsertBytes(pCfg, "GUID", szDriverGUID, sizeof(szDriverGUID)); RC_CHECK(); 1762 } 1728 #elif defined(RT_OS_WINDOWS) /* not defined NetFlt */ 1729 /* NOTHING TO DO HERE */ 1763 1730 #elif defined(RT_OS_LINUX) 1764 1731 /// @todo aleksey: is there anything to be done here? … … 1971 1938 trunkName = Bstr(pszTrunk); 1972 1939 trunkType = TRUNKTYPE_NETADP; 1973 # endif /* defined dVBOX_WITH_NETFLT*/1940 # endif /* defined VBOX_WITH_NETFLT*/ 1974 1941 #elif defined(RT_OS_DARWIN) 1975 1942 rc = CFGMR3InsertString(pCfg, "Trunk", "vboxnet0"); RC_CHECK();
Note:
See TracChangeset
for help on using the changeset viewer.