VirtualBox

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


Ignore:
Timestamp:
Mar 17, 2009 1:00:36 PM (16 years ago)
Author:
vboxsync
Message:

Made the name check for vboxnetN adapters more strict.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/darwin/NetIfList-darwin.cpp

    r17981 r18018  
    317317
    318318            HostNetworkInterfaceType_T enmType;
    319             if (strncmp("vbox", pNew->szName, 4))
     319            if (strncmp("vboxnet", pNew->szName, 7))
    320320                enmType = HostNetworkInterfaceType_Bridged;
    321321            else
  • trunk/src/VBox/Main/linux/NetIfList-linux.cpp

    r17834 r18018  
    148148
    149149                    HostNetworkInterfaceType_T enmType;
    150                     if (strncmp("vbox", pszName, 4))
     150                    if (strncmp("vboxnet", pszName, 7))
    151151                        enmType = HostNetworkInterfaceType_Bridged;
    152152                    else
  • trunk/src/VBox/Main/solaris/NetIfList-solaris.cpp

    r17971 r18018  
    194194
    195195    HostNetworkInterfaceType_T enmType;
    196     if (strncmp("vbox", szNICInstance, 4))
     196    if (strncmp("vboxnet", szNICInstance, 7))
    197197        enmType = HostNetworkInterfaceType_Bridged;
    198198    else
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