VirtualBox

Changeset 13522 in vbox


Ignore:
Timestamp:
Oct 23, 2008 9:21:07 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/Main: Handled zone NIC naming.

File:
1 edited

Legend:

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

    r13406 r13522  
    12721272
    12731273# elif defined(RT_OS_SOLARIS)
    1274                     /* The name is on the form format 'ifX - long name, chop it off at space. */
     1274                    /* The name is on the form format 'ifX[:1] - long name, chop it off at space. */
    12751275                    char szTrunk[8];
    12761276                    strncpy(szTrunk, pszHifName, sizeof(szTrunk));
     
    12841284                    if (pszSpace)
    12851285                        *pszSpace = '\0';
     1286
     1287                    /* Chop it off at the colon (zone naming eg: e1000g:1 we need only the e1000g) */
     1288                    char *pszColon = (char *)memchr(szTrunk, ':', sizeof(szTrunk));
     1289                    if (pszColon)
     1290                        *pszColon = '\0';
     1291
    12861292                    const char *pszTrunk = szTrunk;
    12871293# elif defined(RT_OS_WINDOWS)
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