Changeset 19130 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 23, 2009 8:19:03 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46337
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r19116 r19130 22 22 #define __STDC_LIMIT_MACROS 23 23 #define __STDC_CONSTANT_MACROS 24 25 #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT) 26 # include <VBox/WinNetConfig.h> 27 #endif /* #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT) */ 24 28 25 29 #ifdef RT_OS_LINUX … … 123 127 #include <VBox/err.h> 124 128 #include <VBox/settings.h> 125 126 #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)127 # include <VBox/WinNetConfig.h>128 #endif /* #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT) */129 129 130 130 #include <stdio.h> -
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r18924 r19130 501 501 if (FAILED(mVBox->SetExtraData(Bstr(Utf8StrFmt("HostOnly/%ls/IPV6Address", mInterfaceName.raw())), Bstr(aIPV6Address)))) 502 502 return E_FAIL; 503 if (FAILED(mVBox->SetExtraData(Bstr(Utf8StrFmt("HostOnly/%ls/IPV6NetMask", mInterfaceName.raw())), 503 if (FAILED(mVBox->SetExtraData(Bstr(Utf8StrFmt("HostOnly/%ls/IPV6NetMask", mInterfaceName.raw())), 504 504 Bstr(Utf8StrFmt("%u", aIPV6MaskPrefixLength))))) 505 505 return E_FAIL; -
trunk/src/VBox/Main/win/NetIf-win.cpp
r19083 r19130 1384 1384 if (hrc == S_OK) 1385 1385 { 1386 ULONG ip, mask; 1387 hrc = VBoxNetCfgWinGenHostOnlyNetworkNetworkIp(&ip, &mask); 1388 if(hrc == S_OK) 1389 { 1390 /* ip returned by VBoxNetCfgWinGenHostOnlyNetworkNetworkIp is a network ip, 1391 * i.e. 192.168.xxx.0, assign 192.168.xxx.1 for the hostonly adapter */ 1392 ip = ip | (1 << 24); 1393 hrc = VBoxNetCfgWinEnableStaticIpConfig((const GUID*)guid.raw(), ip, mask); 1394 } 1395 1386 1396 /* write success followed by GUID */ 1387 1397 vrc = aClient->write (SVCHlpMsg::CreateHostOnlyNetworkInterface_OK); … … 1770 1780 if (hr == S_OK) 1771 1781 { 1772 return collectNetIfInfo(name, Guid(IfGuid), pInfo); 1782 memset(pInfo, 0, sizeof(NETIFINFO)); 1783 Guid guid(IfGuid); 1784 pInfo->Uuid = *(guid.raw()); 1785 1786 return collectNetIfInfo(name, guid, pInfo); 1773 1787 } 1774 1788 }
Note:
See TracChangeset
for help on using the changeset viewer.