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:
parent
a9435ff4dd
commit
a0ac6fc0bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182524
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user