aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2001-12-21 21:31:44 +0000
committerThomas Moestl <tmm@FreeBSD.org>2001-12-21 21:31:44 +0000
commit279367f3ce1ba4952c4834ce31af6aa29127740a (patch)
treeba9e1473296d1754805255e788f53b5eee0956f6
parentcaaed7acb7b3b76799b9ca15794f6db7e580a60d (diff)
downloadsrc-279367f3ce1ba4952c4834ce31af6aa29127740a.tar.gz
src-279367f3ce1ba4952c4834ce31af6aa29127740a.zip
Fix a bug that was indroduced while moving this code around (use the
correct length for ethernet addresses).
Notes
Notes: svn path=/head/; revision=88370
-rw-r--r--sys/sparc64/sparc64/ofw_machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/ofw_machdep.c b/sys/sparc64/sparc64/ofw_machdep.c
index b247e7160d1d..13be00511b1d 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);
}