Fix a bug that was indroduced while moving this code around (use the
correct length for ethernet addresses).
This commit is contained in:
parent
610e6d37bc
commit
61d6a8cb0d
@ -32,6 +32,8 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <net/ethernet.h>
|
||||
|
||||
#include <ofw/openfirm.h>
|
||||
|
||||
#include <machine/idprom.h>
|
||||
@ -46,5 +48,5 @@ OF_getetheraddr(device_t dev, u_char *addr)
|
||||
node = OF_peer(0);
|
||||
if (node <= 0 || OF_getprop(node, "idprom", &idp, sizeof(idp)) == -1)
|
||||
panic("Could not determine the machine ethernet address");
|
||||
bcopy(&idp.id_ether, addr, sizeof(addr));
|
||||
bcopy(&idp.id_ether, addr, ETHER_ADDR_LEN);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user