mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Use a locally assigned address rather than stealing Atmel's which
might cause a conflict...
This commit is contained in:
parent
21be3b3183
commit
fcce278bf2
1 changed files with 6 additions and 4 deletions
|
|
@ -201,11 +201,13 @@ ate_attach(device_t dev)
|
|||
rnd = arc4random();
|
||||
|
||||
/*
|
||||
* Set OUI to Atmel.
|
||||
* Set OUI to convenient locally assigned address. 'b'
|
||||
* is 0x62, which has the locally assigned bit set, and
|
||||
* the broadcast/multicast bit clear.
|
||||
*/
|
||||
eaddr[0] = 0x02;
|
||||
eaddr[1] = 0x04;
|
||||
eaddr[2] = 0x25;
|
||||
eaddr[0] = 'b';
|
||||
eaddr[1] = 's';
|
||||
eaddr[2] = 'd';
|
||||
eaddr[3] = (rnd >> 16) & 0xff;
|
||||
eaddr[4] = (rnd >> 8) & 0xff;
|
||||
eaddr[5] = rnd & 0xff;
|
||||
|
|
|
|||
Loading…
Reference in a new issue