mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix ifconfig link flag handling
Submitted by: "Jon Morgan" <morgan@terminus.trailblazer.com>
This commit is contained in:
parent
a1199adebc
commit
18503982d8
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue