diff options
author | guido <guido@FreeBSD.org> | 1996-11-21 21:04:50 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1996-11-21 21:04:50 +0000 |
commit | 0c90e8eacbca1ae2560386ec7e9183e5aee162a2 (patch) | |
tree | 7ae48aec51fc2ea9b13098ea6095b6d1cae46923 /sys/dev/vx | |
parent | 1ee570ecc1ba7cad26c2876b4f78f0462b5d55dc (diff) | |
download | FreeBSD-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.c | 9 |
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; |