From 832f26462b1b3c2a1c11a674fd241421b3df52e0 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Mon, 7 Feb 2005 19:39:29 +0000 Subject: [PATCH] Use if_link_state_change() instead of rt_ifmsg(). Remove include net/route.h. Reviewed by: wpaul, sam --- sys/dev/vge/if_vge.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sys/dev/vge/if_vge.c b/sys/dev/vge/if_vge.c index 0bac802238a0..1ec4ed7f9e42 100644 --- a/sys/dev/vge/if_vge.c +++ b/sys/dev/vge/if_vge.c @@ -97,7 +97,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include @@ -1570,19 +1569,15 @@ vge_tick(xsc) if (sc->vge_link) { if (!(mii->mii_media_status & IFM_ACTIVE)) { sc->vge_link = 0; -#ifdef LINK_STATE_UP - sc->arpcom.ac_if.if_link_state = LINK_STATE_UP; - rt_ifmsg(&(sc->arpcom.ac_if)); -#endif /* LINK_STATE_UP */ + if_link_state_change(&sc->arpcom.ac_if, + LINK_STATE_UP); } } else { if (mii->mii_media_status & IFM_ACTIVE && IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) { sc->vge_link = 1; -#ifdef LINK_STATE_DOWN - sc->arpcom.ac_if.if_link_state = LINK_STATE_DOWN; - rt_ifmsg(&(sc->arpcom.ac_if)); -#endif /* LINK_STATE_DOWN */ + if_link_state_change(&sc->arpcom.ac_if, + LINK_STATE_DOWN); #if __FreeBSD_version < 502114 if (ifp->if_snd.ifq_head != NULL) #else