diff options
author | tmm <tmm@FreeBSD.org> | 2001-12-21 21:31:44 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-12-21 21:31:44 +0000 |
commit | 61d6a8cb0dd43a515064a1777212f33f28d432c8 (patch) | |
tree | ba9e1473296d1754805255e788f53b5eee0956f6 /sys | |
parent | 610e6d37bc39d676b2c14ab0f00feaf8f5409105 (diff) | |
download | FreeBSD-src-61d6a8cb0dd43a515064a1777212f33f28d432c8.zip FreeBSD-src-61d6a8cb0dd43a515064a1777212f33f28d432c8.tar.gz |
Fix a bug that was indroduced while moving this code around (use the
correct length for ethernet addresses).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/ofw_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/ofw_machdep.c b/sys/sparc64/sparc64/ofw_machdep.c index b247e71..13be005 100644 --- a/sys/sparc64/sparc64/ofw_machdep.c +++ b/sys/sparc64/sparc64/ofw_machdep.c @@ -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); } |