From 18503982d882ca3b6fbd560cd2f4b693fec55793 Mon Sep 17 00:00:00 2001 From: Guido van Rooij Date: Thu, 21 Nov 1996 21:04:50 +0000 Subject: [PATCH] Fix ifconfig link flag handling Submitted by: "Jon Morgan" --- sys/dev/vx/if_vx.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/dev/vx/if_vx.c b/sys/dev/vx/if_vx.c index a8ab85b4ad7..4daf22f1c28 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;