diff options
author | stas <stas@FreeBSD.org> | 2008-08-31 09:28:49 +0000 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2008-08-31 09:28:49 +0000 |
commit | 1ab8b1ad33760215eaf34c34b010ed94c0666631 (patch) | |
tree | 0b376bac8d9296985f1caca791dfc3ad9666a986 /sys/arm | |
parent | 1507ef638cb1a84b2e49cc1517caa9f48a145fe6 (diff) | |
download | FreeBSD-src-1ab8b1ad33760215eaf34c34b010ed94c0666631.zip FreeBSD-src-1ab8b1ad33760215eaf34c34b010ed94c0666631.tar.gz |
- 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)
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/if_ate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arm/at91/if_ate.c b/sys/arm/at91/if_ate.c index 6fa90d2..c3f120c 100644 --- a/sys/arm/at91/if_ate.c +++ b/sys/arm/at91/if_ate.c @@ -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; |