Changeset 11851 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Aug 29, 2008 10:27:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r11849 r11851 1192 1192 1193 1193 #elif defined(VBOX_WITH_NETFLT) && !defined(RT_OS_WINDOWS) /** @todo merge in the windows stuff too */ 1194 /* 1195 * This is the new VBoxNetFlt+IntNet stuff. 1196 */ 1194 1197 if (fSniffer) 1195 1198 { … … 1205 1208 Utf8Str HifNameUtf8(HifName); 1206 1209 const char *pszHifName = HifNameUtf8.raw(); 1210 1207 1211 # if defined(RT_OS_DARWIN) 1208 /* The nae is on the form 'ifX: long name', chop it off at the colon. */ 1209 Bstr HifName; 1210 hrc = networkAdapter->COMGETTER(HostInterface)(HifName.asOutParam()); H(); 1211 Utf8Str HifNameUtf8(HifName); 1212 const char *pszHifName = HifNameUtf8.raw(); 1212 /* The name is on the form 'ifX: long name', chop it off at the colon. */ 1213 1213 char szTrunk[8]; 1214 1214 strncpy(szTrunk, pszHifName, sizeof(szTrunk)); … … 1223 1223 *pszColon = '\0'; 1224 1224 const char *pszTrunk = szTrunk; 1225 1225 1226 # elif defined(RT_OS_SOLARIS) 1226 1227 /* The name is on the form BSD format 'ifX'; use as-is. */
Note:
See TracChangeset
for help on using the changeset viewer.