Set the locally-assigned bit in the randomly generated Ethernet address

if we end up having to generate one.

PR:		kern/133239
Discussed with:	yongari
Approved by:	ed (mentor)
MFC after:	2 weeks
This commit is contained in:
Gavin Atkinson 2009-12-25 19:57:28 +00:00
parent f0b108cf03
commit cd3135e9ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200994

View File

@ -465,7 +465,7 @@ jme_reg_macaddr(struct jme_softc *sc)
"generating fake ethernet address.\n");
par0 = arc4random();
/* Set OUI to JMicron. */
sc->jme_eaddr[0] = 0x00;
sc->jme_eaddr[0] = 0x02; /* U/L bit set. */
sc->jme_eaddr[1] = 0x1B;
sc->jme_eaddr[2] = 0x8C;
sc->jme_eaddr[3] = (par0 >> 16) & 0xff;