summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason <jason@openbsd.org>1999-02-08 13:39:29 +0000
committerjason <jason@openbsd.org>1999-02-08 13:39:29 +0000
commit405ab4bc2d10dd9b65dfb3d5b39ee035b310a408 (patch)
treef63001c4e91ffa939fe2afdb44820873f8729b8b
parentsync (diff)
downloadwireguard-openbsd-405ab4bc2d10dd9b65dfb3d5b39ee035b310a408.tar.xz
wireguard-openbsd-405ab4bc2d10dd9b65dfb3d5b39ee035b310a408.zip
match be & qe as part of the bootpath
-rw-r--r--sys/arch/sparc/dev/be.c8
-rw-r--r--sys/arch/sparc/dev/qe.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c
index b465a12fc19..27531b9cb75 100644
--- a/sys/arch/sparc/dev/be.c
+++ b/sys/arch/sparc/dev/be.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: be.c,v 1.19 1999/01/07 03:14:42 jason Exp $ */
+/* $OpenBSD: be.c,v 1.20 1999/02/08 13:39:29 jason Exp $ */
/*
* Copyright (c) 1998 Theo de Raadt and Jason L. Wright.
@@ -131,6 +131,7 @@ beattach(parent, self, aux)
struct besoftc *sc = (struct besoftc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct confargs *ca = aux;
+ struct bootpath *bp;
extern void myetheraddr __P((u_char *));
int pri, bmsr;
@@ -231,6 +232,11 @@ beattach(parent, self, aux)
bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB,
sizeof(struct ether_header));
#endif
+
+ bp = ca->ca_ra.ra_bp;
+ if (bp != NULL && strcmp(bp->name, "be") == 0 &&
+ sc->sc_dev.dv_unit == bp->val[1])
+ bp->dev = &sc->sc_dev;
}
/*
diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c
index 1c436556e35..f35e8e0b6dd 100644
--- a/sys/arch/sparc/dev/qe.c
+++ b/sys/arch/sparc/dev/qe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qe.c,v 1.5 1998/11/02 05:50:59 jason Exp $ */
+/* $OpenBSD: qe.c,v 1.6 1999/02/08 13:39:30 jason Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright.
@@ -128,6 +128,7 @@ qeattach(parent, self, aux)
struct qesoftc *sc = (struct qesoftc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct confargs *ca = aux;
+ struct bootpath *bp;
extern void myetheraddr __P((u_char *));
int pri;
@@ -173,6 +174,11 @@ qeattach(parent, self, aux)
bpfattach(&sc->sc_arpcom.ac_if.if_bpf, ifp, DLT_EN10MB,
sizeof(struct ether_header));
#endif
+
+ bp = ca->ca_ra.ra_bp;
+ if (bp != NULL && strcmp(bp->name, "qe") == 0 &&
+ sc->sc_dev.dv_unit == bp->val[1])
+ bp->dev = &sc->sc_dev;
}
/*