- Fix comment.

- Set U/L bit of generated ethernet address to 1 to not
  clash with Atmel assigned addresses.

Suggested by:	yar
Approved by:	kib (mentor)
This commit is contained in:
Stanislav Sedov 2008-08-31 09:28:49 +00:00
parent a9435ff4dd
commit a0ac6fc0bc

View File

@ -193,17 +193,17 @@ ate_attach(device_t dev)
if ((err = ate_get_mac(sc, eaddr)) != 0) {
/*
* No MAC address configured. Generate the fake one.
* No MAC address configured. Generate the random one.
*/
if (bootverbose)
device_printf(dev,
"Generating fake ethernet address.\n");
"Generating random ethernet address.\n");
rnd = arc4random();
/*
* Set OUI to Atmel.
*/
eaddr[0] = 0x00;
eaddr[0] = 0x02;
eaddr[1] = 0x04;
eaddr[2] = 0x25;
eaddr[3] = (rnd >> 16) & 0xff;