- Timestamp:
- Feb 18, 2009 11:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/solaris/VBoxNetAdp-solaris.c
r16888 r16891 190 190 * Global Variables * 191 191 *******************************************************************************/ 192 /** Global device info handle. */193 static dev_info_t *g_pVBoxNetAdpSolarisDip = NULL;194 195 192 /** The default ethernet broadcast address */ 196 193 static uchar_t achBroadcastAddr[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; 197 198 194 199 195 /** … … 214 210 static int vboxNetAdpSolarisSetMacAddress(gld_mac_info_t *pMacInfo, unsigned char *pszMacAddr); 215 211 static int vboxNetAdpSolarisSend(gld_mac_info_t *pMacInfo, mblk_t *pMsg); 216 217 212 static int vboxNetAdpSolarisStub(gld_mac_info_t *pMacInfo); 218 213 static int vboxNetAdpSolarisSetPromisc(gld_mac_info_t *pMacInfo, int fPromisc); … … 441 436 pMac->au8[1] = 0x08; 442 437 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); 451 439 LogFlow((DEVICE_NAME ":VBoxNetAdpSolarisGenerateMac Generated %.*Rhxs\n", sizeof(RTMAC), &pMac)); 452 440 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.