1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

- 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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182524

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;