FreeBSD/sys/netpfil/ipfw/test/main.c
/*
 * dn_sch_inst does not have a queue, for the RR we
 * allocate a mq right after si
 */
dn_sch_inst does not have a queue, for the RR we
allocate a mq right after si
dn_sch_inst does not have a queue for the RR we allocate a mq right after si
static int
default_enqueue(struct dn_sch_inst *si, struct dn_queue *q, struct mbuf *m)
{
	struct mq *mq = (struct mq *)si;
	(void)q;
	if (mq->head == NULL)
		mq->head = m;
	else
		mq->tail->m_nextpkt = m;
	mq->tail = m;
	return 0; 
}
static int default_enqueue ( struct dn_sch_inst * si , struct dn_queue * q , struct mbuf * m ) { struct mq * mq = ( struct mq * ) si ; ( void ) q ; if ( mq -> head == NULL ) mq -> head = m ; else mq -> tail -> m_nextpkt = m ; mq -> tail = m ; return 0 ; }
dn_sch_inst does not have a queue, for the RR we
 allocate a mq right after si
dn_sch_inst does not have a queue for the RR we allocate a mq right after si
/* this is the default function if no scheduler is provided */ /* default - success */