VirtualBox

Changeset 16891 in vbox for trunk


Ignore:
Timestamp:
Feb 18, 2009 11:08:07 AM (16 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetAdp: dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/solaris/VBoxNetAdp-solaris.c

    r16888 r16891  
    190190*   Global Variables                                                           *
    191191*******************************************************************************/
    192 /** Global device info handle. */
    193 static dev_info_t *g_pVBoxNetAdpSolarisDip = NULL;
    194 
    195192/** The default ethernet broadcast address */
    196193static uchar_t achBroadcastAddr[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
    197 
    198194
    199195/**
     
    214210static int vboxNetAdpSolarisSetMacAddress(gld_mac_info_t *pMacInfo, unsigned char *pszMacAddr);
    215211static int vboxNetAdpSolarisSend(gld_mac_info_t *pMacInfo, mblk_t *pMsg);
    216 
    217212static int vboxNetAdpSolarisStub(gld_mac_info_t *pMacInfo);
    218213static int vboxNetAdpSolarisSetPromisc(gld_mac_info_t *pMacInfo, int fPromisc);
     
    441436    pMac->au8[1] = 0x08;
    442437    pMac->au8[2] = 0x27;
    443 
    444     unsigned char achRand[3];
    445     RTRandBytes(&achRand, sizeof(achRand));
    446 
    447     pMac->au8[3] = achRand[0];
    448     pMac->au8[4] = achRand[1];
    449     pMac->au8[5] = achRand[2];
    450 
     438    RTRandBytes(&pMac->au8[3], 3);
    451439    LogFlow((DEVICE_NAME ":VBoxNetAdpSolarisGenerateMac Generated %.*Rhxs\n", sizeof(RTMAC), &pMac));
    452440    return VINF_SUCCESS;
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