Changeset 22455 in vbox
- Timestamp:
- Aug 26, 2009 8:32:32 AM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r22434 r22455 243 243 , mVMStateChangeCallbackDisabled (false) 244 244 , mMachineState (MachineState_PoweredOff) 245 {} 245 { 246 for (ULONG slot = 0; slot < SchemaDefs::NetworkAdapterCount; slot ++) 247 meAttachmentType[slot] = NetworkAttachmentType_Null; 248 } 246 249 247 250 Console::~Console() … … 7680 7683 }; 7681 7684 7682 /**7683 * Initializing the attachment type for the network adapters7684 */7685 NetworkAttachmentType_T Console::meAttachmentType[] = {};7686 7687 7685 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r22396 r22455 2127 2127 { 2128 2128 const char *pszNetDriver = "IntNet"; 2129 if ( meAttachmentType[uInstance] == NetworkAttachmentType_NAT)2129 if (pThis->meAttachmentType[uInstance] == NetworkAttachmentType_NAT) 2130 2130 pszNetDriver = "NAT"; 2131 2131 #if !defined(VBOX_WITH_NETFLT) && defined(RT_OS_LINUX) 2132 if ( meAttachmentType[uInstance] == NetworkAttachmentType_Bridged)2132 if (pThis->meAttachmentType[uInstance] == NetworkAttachmentType_Bridged) 2133 2133 pszNetDriver = "HostInterface"; 2134 2134 #endif … … 2853 2853 } 2854 2854 2855 meAttachmentType[uInstance] = eAttachmentType;2855 pThis->meAttachmentType[uInstance] = eAttachmentType; 2856 2856 2857 2857 #undef STR_FREE -
trunk/src/VBox/Main/include/ConsoleImpl.h
r22396 r22455 564 564 * change the network attachment dynamically. 565 565 */ 566 staticNetworkAttachmentType_T meAttachmentType[SchemaDefs::NetworkAdapterCount];566 NetworkAttachmentType_T meAttachmentType[SchemaDefs::NetworkAdapterCount]; 567 567 568 568 VMMDev * const mVMMDev;
Note:
See TracChangeset
for help on using the changeset viewer.