VirtualBox

Changeset 11098 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 4, 2008 12:46:44 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34021
Message:

Main: Made the HIF enumeration a bit less strict on the MAC. Both CFBundleIdentifier and IOProviderClass is missing on the yukon driver on the iMac/7.1 here.

File:
1 edited

Legend:

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

    r10895 r11098  
    14621462                    {
    14631463                        /* Check if airport (a bit heuristical - it's com.apple.driver.AirPortBrcm43xx here). */
    1464                         AssertBreak(darwinDictGetString(PropsRef, CFSTR("CFBundleIdentifier"), szTmp, sizeof(szTmp)));
     1464                        darwinDictGetString(PropsRef, CFSTR("CFBundleIdentifier"), szTmp, sizeof(szTmp));
    14651465                        bool fWireless;
    14661466                        bool fAirPort = fWireless = strstr(szTmp, ".AirPort") != NULL;
    14671467
    14681468                        /* Check if it's USB. */
    1469                         AssertBreak(darwinDictGetString(PropsRef, CFSTR("IOProviderClass"), szTmp, sizeof(szTmp)));
     1469                        darwinDictGetString(PropsRef, CFSTR("IOProviderClass"), szTmp, sizeof(szTmp));
    14701470                        bool fUSB = strstr(szTmp, "USB") != NULL;
     1471
     1472
     1473                        /* Is it builtin? */
     1474                        bool fBuiltin;
     1475                        darwinDictGetBool(IfPropsRef, CFSTR("IOBuiltin"), &fBuiltin);
     1476
     1477                        /* Is it the primary interface  */
     1478                        bool fPrimaryIf;
     1479                        darwinDictGetBool(IfPropsRef, CFSTR("IOPrimaryInterface"), &fPrimaryIf);
    14711480
    14721481                        /* Get the MAC address. */
    14731482                        PDMMAC Mac;
    14741483                        AssertBreak(darwinDictGetData(PropsRef, CFSTR("IOMACAddress"), &Mac, sizeof(Mac)));
    1475 
    1476                         /* Is it builtin? */
    1477                         bool fBuiltin;
    1478                         AssertBreak(darwinDictGetBool(IfPropsRef, CFSTR("IOBuiltin"), &fBuiltin));
    1479 
    1480                         /* Is it the primary interface  */
    1481                         bool fPrimaryIf;
    1482                         AssertBreak(darwinDictGetBool(IfPropsRef, CFSTR("IOPrimaryInterface"), &fPrimaryIf));
    14831484
    14841485                        /* The BSD Name from the interface dictionary. */
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