summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2000-04-26 12:48:53 +0000
committeraaron <aaron@openbsd.org>2000-04-26 12:48:53 +0000
commit70e856f9ee159d1dc357999914ea8de1a4498e2c (patch)
tree1a92af5786c7e677cb5d787432dbbcd5e06e7d92
parentsync with latest kame. (diff)
downloadwireguard-openbsd-70e856f9ee159d1dc357999914ea8de1a4498e2c.tar.xz
wireguard-openbsd-70e856f9ee159d1dc357999914ea8de1a4498e2c.zip
After the fxp split, sizeof(enaddr) is now 4, not 6, since enaddr is a pointer
that's passed in from the bus-dependent parts. Use ETHER_ADDR_LEN so we get the whole thing; sigh@kuzirabekon.econ.nagasaki-u.ac.jp
-rw-r--r--sys/dev/ic/fxp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/fxp.c b/sys/dev/ic/fxp.c
index a5adc1da376..e747d5f60dc 100644
--- a/sys/dev/ic/fxp.c
+++ b/sys/dev/ic/fxp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fxp.c,v 1.1 2000/04/18 18:44:26 jason Exp $ */
+/* $OpenBSD: fxp.c,v 1.2 2000/04/26 12:48:53 aaron Exp $ */
/* $NetBSD: if_fxp.c,v 1.2 1997/06/05 02:01:55 thorpej Exp $ */
/*
@@ -412,7 +412,7 @@ fxp_attach_common(sc, enaddr, intrstr)
fxp_read_eeprom(sc, (u_int16_t *)enaddr, 0, 3);
ifp = &sc->arpcom.ac_if;
- bcopy(enaddr, sc->arpcom.ac_enaddr, sizeof(enaddr));
+ bcopy(enaddr, sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
bcopy(sc->sc_dev.dv_xname, ifp->if_xname, IFNAMSIZ);
ifp->if_softc = sc;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;