FreeBSD/sys/net/altq/altq_fairq.c
/* discard all the queued packets on the interface */
discard all the queued packets on the interface
discard all the queued packets on the interface
static void
fairq_purge(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 && cl->cl_head)
			fairq_purgeq(cl);
	}
	if (ALTQ_IS_ENABLED(pif->pif_ifq))
		pif->pif_ifq->ifq_len = 0;
}
static void fairq_purge ( 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 && cl -> cl_head ) fairq_purgeq ( cl ) ; } if ( ALTQ_IS_ENABLED ( pif -> pif_ifq ) ) pif -> pif_ifq -> ifq_len = 0 ; }
discard all the queued packets on the interface
discard all the queued packets on the interface