diff options
| author | 2008-05-13 01:37:26 +0000 | |
|---|---|---|
| committer | 2008-05-13 01:37:26 +0000 | |
| commit | c541054cfdfb450b8749d5f93c364ea91920916c (patch) | |
| tree | 98d66abccb252caf8d89f6946f6a96246725dc67 /sys | |
| parent | Also report the duplex state of the connection when calling (diff) | |
| download | wireguard-openbsd-c541054cfdfb450b8749d5f93c364ea91920916c.tar.xz wireguard-openbsd-c541054cfdfb450b8749d5f93c364ea91920916c.zip | |
Use the LINK_STATE_IS_UP macro when checking for the link being UP.
ok dlg@
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/pci/if_art.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_art.c b/sys/dev/pci/if_art.c index 558a283212d..0343702d60e 100644 --- a/sys/dev/pci/if_art.c +++ b/sys/dev/pci/if_art.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_art.c,v 1.14 2007/09/17 17:34:22 brad Exp $ */ +/* $OpenBSD: if_art.c,v 1.15 2008/05/13 01:37:26 brad Exp $ */ /* * Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland @@ -336,7 +336,7 @@ art_ifm_status(struct ifnet *ifp, struct ifmediareq *ifmreq) ac = (struct art_softc *) ((struct channel_softc *)ifp->if_softc)->cc_parent; ifmreq->ifm_status = IFM_AVALID; - if (ifp->if_link_state == LINK_STATE_UP) + if (LINK_STATE_IS_UP(ifp->if_link_state)) ifmreq->ifm_status |= IFM_ACTIVE; ifmreq->ifm_active = ac->art_media; @@ -401,7 +401,7 @@ art_onesec(void *arg) if (link_state != ifp->if_link_state) { s = splsoftnet(); - if (link_state == LINK_STATE_UP) + if (LINK_STATE_IS_UP(link_state)) ppp->pp_up(ppp); else ppp->pp_down(ppp); @@ -425,7 +425,7 @@ art_linkstate(void *arg) struct art_softc *ac = arg; struct ifnet *ifp = ac->art_channel->cc_ifp; - if (ifp->if_link_state == LINK_STATE_UP) + if (LINK_STATE_IS_UP(ifp->if_link_state)) /* turn red led off */ ebus_set_led(ac->art_channel, 0, MUSYCC_LED_RED); else |
