sbin/routed/rdisc.c
/* Zap all routes discovered via an interface that has gone bad
 *	This should only be called when !(ifp->int_state & IS_ALIAS)
 */
Zap all routes discovered via an interface that has gone bad
This should only be called when !(ifp->int_state & IS_ALIAS)
Zap all routes discovered via an interface that has gone bad This should only be called when ! ( ifp - > int_state & IS_ALIAS )
void
if_bad_rdisc(struct interface *ifp)
{
	struct dr *drp;
	for (drp = drs; drp < &drs[MAX_ADS]; drp++) {
		if (drp->dr_ifp != ifp)
			continue;
		drp->dr_recv_pref = 0;
		drp->dr_ts = 0;
		drp->dr_life = 0;
	}
	rdisc_timer.tv_sec = 0;
}
void if_bad_rdisc ( struct interface * ifp ) { struct dr * drp ; for ( drp = drs ; drp < & drs [ MAX_ADS ] ; drp ++ ) { if ( drp -> dr_ifp != ifp ) continue ; drp -> dr_recv_pref = 0 ; drp -> dr_ts = 0 ; drp -> dr_life = 0 ; } rdisc_timer . tv_sec = 0 ; }
Zap all routes discovered via an interface that has gone bad
      This should only be called when !
Zap all routes discovered via an interface that has gone bad This should only be called when !
/* make a note to re-solicit, turn RIP on or off, etc. */