summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_kue.c
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/dev/usb/if_kue.c
parentb2b75097ffe6ed3a878d11697fe722261a48b25c (diff)
Save ethernet address in arpcom.ac_enaddr. -moj
Diffstat (limited to 'sys/dev/usb/if_kue.c')
-rw-r--r--sys/dev/usb/if_kue.c7
1 files changed, 6 insertions, 1 deletions
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;