Changeset 52592 in vbox for trunk/src/VBox/Main/src-client
- 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-client/ConsoleImpl2.cpp
r52247 r52592 5173 5173 CoTaskMemFree(pswzBindName); 5174 5174 5175 wchar_t * pswzHwId; 5176 hrc = pAdaptorComponent->GetId(&pswzHwId); 5177 Assert(hrc == S_OK); 5178 if (hrc == S_OK) 5179 { 5180 if (!_wcsnicmp(pswzHwId, L"sun_VBoxNetAdp6", sizeof(L"sun_VBoxNetAdp6")/2)) 5181 { 5182 /* 5183 * This is NDIS 6.x miniport, it relies on NetLwf filter to 5184 * run actual traffic. We use netflt attachment instead of 5185 * netadp, which is used in case of NDIS 5.x. 5186 */ 5187 InsertConfigInteger(pCfg, "TrunkType", kIntNetTrunkType_NetFlt); 5188 trunkType = TRUNKTYPE_NETFLT; 5189 } 5190 else 5191 { 5192 InsertConfigInteger(pCfg, "TrunkType", kIntNetTrunkType_NetAdp); 5193 trunkType = TRUNKTYPE_NETADP; 5194 } 5195 } 5196 else 5197 { 5198 LogRel(("Console::i_configNetwork: INetCfgComponent::GetId(%s) failed, err (0x%x), " 5199 "falling back to NDIS5 attachment\n", pszTrunkName, hrc)); 5200 InsertConfigInteger(pCfg, "TrunkType", kIntNetTrunkType_NetAdp); 5201 trunkType = TRUNKTYPE_NETADP; 5202 } 5203 CoTaskMemFree(pswzHwId); 5204 5175 5205 pAdaptorComponent.setNull(); 5176 5206 /* release the pNc finally */ … … 5179 5209 const char *pszTrunk = szTrunkName; 5180 5210 5181 InsertConfigInteger(pCfg, "TrunkType", kIntNetTrunkType_NetAdp);5182 5211 InsertConfigString(pCfg, "Trunk", pszTrunk); 5183 5212 InsertConfigString(pCfg, "Network", szNetwork); … … 5186 5215 networkName = Bstr(szNetwork); 5187 5216 trunkName = Bstr(pszTrunk); 5188 trunkType = TRUNKTYPE_NETADP;5189 5217 # endif /* defined VBOX_WITH_NETFLT*/ 5190 5218 #elif defined(RT_OS_DARWIN)
Note:
See TracChangeset
for help on using the changeset viewer.