VirtualBox

Changeset 10900 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 26, 2008 2:42:17 AM (17 years ago)
Author:
vboxsync
Message:

Main: Fixed the darwin hif setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r10898 r10900  
    4646#include <VBox/HostServices/VBoxClipboardSvc.h>
    4747#ifdef VBOX_WITH_GUEST_PROPS
    48 #include <VBox/HostServices/GuestPropertySvc.h>
     48# include <VBox/HostServices/GuestPropertySvc.h>
    4949#endif /* VBOX_WITH_GUEST_PROPS */
     50#include <VBox/intnet.h>
    5051
    5152
     
    12011202                    Bstr hostInterfaceName;
    12021203                    hrc = networkAdapter->COMGETTER(HostInterface)(hostInterfaceName.asOutParam()); H();
    1203                     char szTrunkName[8];
    1204                     strncpy(szTrunkName, Utf8Str(hostInterfaceName).raw(), sizeof(szTrunkName));
    1205                     char *pszColon = (char *)memchr(szTrunkName, ':', sizeof(szTrunkName));
     1204                    char szTrunk[8];
     1205                    strncpy(szTrunk, Utf8Str(hostInterfaceName).raw(), sizeof(szTrunk));
     1206                    char *pszColon = (char *)memchr(szTrunk, ':', sizeof(szTrunk));
    12061207                    if (!pszColon)
    12071208                    {
     
    12151216                    rc = CFGMR3InsertString(pLunL0, "Driver", "IntNet");            RC_CHECK();
    12161217                    rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg);                 RC_CHECK();
    1217                     rc = CFGMR3InsertString(pCfg, "TrunkName", szTrunkName);        RC_CHECK();
     1218                    rc = CFGMR3InsertString(pCfg, "Trunk", szTrunk);                RC_CHECK();
     1219                    rc = CFGMR3InsertInteger(pCfg, "TrunkType", kIntNetTrunkType_NetFlt); RC_CHECK();
    12181220                    char szNetwork[80];
    1219                     RTStrPrintf(szNetwork, sizeof(szNetwork), "HostInterfaceNetworking-%s\n", szTrunkName);
     1221                    RTStrPrintf(szNetwork, sizeof(szNetwork), "HostInterfaceNetworking-%s\n", szTrunk);
    12201222                    rc = CFGMR3InsertString(pCfg, "Network", szNetwork);            RC_CHECK();
    12211223
Note: See TracChangeset for help on using the changeset viewer.

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