From 39508dd2bdbfabaaf39181341a80d7b6ff742761 Mon Sep 17 00:00:00 2001 From: maja Date: Sun, 23 Apr 2000 17:33:47 +0000 Subject: [PATCH] Save ethernet address in arpcom.ac_enaddr. -moj --- sys/dev/usb/if_aue.c | 6 +++++- sys/dev/usb/if_cue.c | 6 +++++- sys/dev/usb/if_kue.c | 7 ++++++- 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; -- 2.20.1