sys/net/altq/altq_fairq.c
/*
 * bring the interface back to the initial state by discarding
 * all the filters and classes.
 */
bring the interface back to the initial state by discarding
all the filters and classes.
bring the interface back to the initial state by discarding all the filters and classes .
static int
fairq_clear_interface(struct fairq_if *pif)
{
	struct fairq_class *cl;
	int pri;
	for (pri = 0; pri <= pif->pif_maxpri; pri++) {
		if ((cl = pif->pif_classes[pri]) != NULL)
			fairq_class_destroy(cl);
	}
	return (0);
}
static int fairq_clear_interface ( struct fairq_if * pif ) { struct fairq_class * cl ; int pri ; for ( pri = 0 ; pri <= pif -> pif_maxpri ; pri ++ ) { if ( ( cl = pif -> pif_classes [ pri ] ) != NULL ) fairq_class_destroy ( cl ) ; } return ( 0 ) ; }
bring the interface back to the initial state by discarding
 all the filters and classes.
bring the interface back to the initial state by discarding all the filters and classes .
/* clear out the classes */