summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2000-04-23 17:33:48 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2000-04-23 17:33:48 +0000
commit78e050ec5c1a1cd906b4f22995d7cbda77d0d6c7 (patch)
treeba9582fc19204d18607664967abc925f3e1c39ff /sys
parentb2b75097ffe6ed3a878d11697fe722261a48b25c (diff)
Save ethernet address in arpcom.ac_enaddr. -moj
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/if_aue.c6
-rw-r--r--sys/dev/usb/if_cue.c6
-rw-r--r--sys/dev/usb/if_kue.c7
3 files changed, 16 insertions, 3 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index 2c4e093bb7e..2f4d4801ded 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_aue.c,v 1.4 2000/04/14 22:50:24 aaron Exp $ */
+/* $OpenBSD: if_aue.c,v 1.5 2000/04/23 17:33:47 maja Exp $ */
/* $NetBSD: if_aue.c,v 1.38 2000/04/04 20:16:19 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -884,6 +884,10 @@ USB_ATTACH(aue)
printf("%s: Ethernet address %s\n", USBDEVNAME(sc->aue_dev),
ether_sprintf(eaddr));
+#if defined(__OpenBSD__)
+ bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
+#endif
+
/* Initialize interface info.*/
ifp->if_softc = sc;
ifp->if_mtu = ETHERMTU;
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c
index 532b7cba30d..221e0ee716f 100644
--- a/sys/dev/usb/if_cue.c
+++ b/sys/dev/usb/if_cue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cue.c,v 1.3 2000/04/04 22:52:30 aaron Exp $ */
+/* $OpenBSD: if_cue.c,v 1.4 2000/04/23 17:33:47 maja Exp $ */
/* $NetBSD: if_cue.c,v 1.21 2000/04/02 21:25:41 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -710,6 +710,10 @@ USB_ATTACH(cue)
printf("%s: Ethernet address %s\n", USBDEVNAME(sc->cue_dev),
ether_sprintf(eaddr));
+#if defined(__OpenBSD__)
+ bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
+#endif
+
/* Initialize interface info.*/
ifp = GET_IFP(sc);
ifp->if_softc = sc;
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c
index ff8822d12d9..2c2d5103676 100644
--- a/sys/dev/usb/if_kue.c
+++ b/sys/dev/usb/if_kue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_kue.c,v 1.4 2000/04/04 22:52:30 aaron Exp $ */
+/* $OpenBSD: if_kue.c,v 1.5 2000/04/23 17:33:47 maja Exp $ */
/* $NetBSD: if_kue.c,v 1.28 2000/04/02 21:25:41 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -666,6 +666,11 @@ USB_ATTACH(kue)
printf("%s: Ethernet address %s\n", USBDEVNAME(sc->kue_dev),
ether_sprintf(sc->kue_desc.kue_macaddr));
+#if defined(__OpenBSD__)
+ bcopy(sc->kue_desc.kue_macaddr,
+ (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN);
+#endif
+
/* Initialize interface info.*/
ifp = GET_IFP(sc);
ifp->if_softc = sc;