VirtualBox

Changeset 40056 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Feb 9, 2012 7:15:04 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76184
Message:

Main/ConsoleImpl2: Solaris: Fix invalid duplicate bridged network name being passed via CFGM.

File:
1 edited

Legend:

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

    r39477 r40056  
    41474147                InsertConfigString(pCfg, "IfPolicyPromisc", pszPromiscuousGuestPolicy);
    41484148                char szNetwork[INTNET_MAX_NETWORK_NAME];
     4149
     4150#if defined(RT_OS_SOLARIS)                /* @todo Shouldn't darwin also do the same? */
     4151                /*
     4152                 * 'pszTrunk' contains just the interface name required in ring-0, while 'pszBridgedIfName' contains
     4153                 * interface name + optional description. We must not pass any description to the VM as it can differ
     4154                 * for the same interface name, eg: "nge0 - ethernet" (GUI) vs "nge0" (VBoxManage).
     4155                 */
     4156                RTStrPrintf(szNetwork, sizeof(szNetwork), "HostInterfaceNetworking-%s", pszTrunk);
     4157#else
    41494158                RTStrPrintf(szNetwork, sizeof(szNetwork), "HostInterfaceNetworking-%s", pszBridgedIfName);
     4159#endif
    41504160                InsertConfigString(pCfg, "Network", szNetwork);
    41514161                networkName = Bstr(szNetwork);
Note: See TracChangeset for help on using the changeset viewer.

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