Fix a bug that was indroduced while moving this code around (use the

correct length for ethernet addresses).
This commit is contained in:
tmm 2001-12-21 21:31:44 +00:00
parent 610e6d37bc
commit 61d6a8cb0d

View File

@ -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);
}