summaryrefslogtreecommitdiffstats
path: root/sys/dev/vx
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1996-11-21 21:04:50 +0000
committerguido <guido@FreeBSD.org>1996-11-21 21:04:50 +0000
commit0c90e8eacbca1ae2560386ec7e9183e5aee162a2 (patch)
tree7ae48aec51fc2ea9b13098ea6095b6d1cae46923 /sys/dev/vx
parent1ee570ecc1ba7cad26c2876b4f78f0462b5d55dc (diff)
downloadFreeBSD-src-0c90e8eacbca1ae2560386ec7e9183e5aee162a2.zip
FreeBSD-src-0c90e8eacbca1ae2560386ec7e9183e5aee162a2.tar.gz
Fix ifconfig link flag handling
Submitted by: "Jon Morgan" <morgan@terminus.trailblazer.com>
Diffstat (limited to 'sys/dev/vx')
-rw-r--r--sys/dev/vx/if_vx.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c
index a8ab85b..4daf22f 100644
--- a/sys/dev/vx/if_vx.c
+++ b/sys/dev/vx/if_vx.c
@@ -371,11 +371,14 @@ vxsetlink(sc)
* (if present on card or AUI if not).
*/
/* Set the xcvr. */
- if(ifp->if_flags & IFF_LINK0 && sc->vx_connectors & CONNECTOR_AUI) {
+ if(ifp->if_flags & IFF_LINK0 && sc->vx_connectors &
+ connector_table[CONNECTOR_AUI].bit) {
i = CONNECTOR_AUI;
- } else if(ifp->if_flags & IFF_LINK1 && sc->vx_connectors & CONNECTOR_BNC) {
+ } else if(ifp->if_flags & IFF_LINK1 && sc->vx_connectors &
+ connector_table[CONNECTOR_BNC].bit) {
i = CONNECTOR_BNC;
- } else if(ifp->if_flags & IFF_LINK2 && sc->vx_connectors & CONNECTOR_UTP) {
+ } else if(ifp->if_flags & IFF_LINK2 && sc->vx_connectors &
+ connector_table[CONNECTOR_UTP].bit) {
i = CONNECTOR_UTP;
} else {
i = sc->vx_connector;
OpenPOWER on IntegriCloud