summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2005-07-30 08:00:44 +0000
committerbrad <brad@openbsd.org>2005-07-30 08:00:44 +0000
commitab373de92bacc76f6fe25226bc7a66b5a99004eb (patch)
treef723c4098ad2fa89b5fb896e952408797b5940b0 /sys/dev
parent6 -> ETHER_ADDR_LEN (diff)
downloadwireguard-openbsd-ab373de92bacc76f6fe25226bc7a66b5a99004eb.tar.xz
wireguard-openbsd-ab373de92bacc76f6fe25226bc7a66b5a99004eb.zip
allow re(4) to attach too.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mii/rlphy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/mii/rlphy.c b/sys/dev/mii/rlphy.c
index d3f6cc1412b..846281b8ba3 100644
--- a/sys/dev/mii/rlphy.c
+++ b/sys/dev/mii/rlphy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rlphy.c,v 1.18 2005/05/27 08:04:15 brad Exp $ */
+/* $OpenBSD: rlphy.c,v 1.19 2005/07/30 08:00:44 brad Exp $ */
/*
* Copyright (c) 1998, 1999 Jason L. Wright (jason@thought.net)
@@ -84,7 +84,8 @@ rlphymatch(struct device *parent, void *match, void *aux)
MII_MODEL(ma->mii_id2) != 0)
return (0);
- if (strcmp(parent->dv_cfdata->cf_driver->cd_name, "rl") != 0)
+ if (strcmp(parent->dv_cfdata->cf_driver->cd_name, "rl") != 0 &&
+ strcmp(parent->dv_cfdata->cf_driver->cd_name, "re") != 0)
return (0);
/*