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 2009-12-25 19:57:28 +00:00
parent 1740763eb0
commit 603398cc9d

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;