sys/netccitt/llc_output.c
/*
 * llc_start() --- We try to subsequently dequeue all the frames available and
 *                 send them out.
 */
We try to subsequently dequeue all the frames available and
send them out.
We try to subsequently dequeue all the frames available and send them out .
void
llc_start(struct llc_linkcb *linkp)
{
	register int i;
	register struct mbuf *m;
	int action;
	while ((LLC_STATEEQ(linkp, NORMAL) || LLC_STATEEQ(linkp, BUSY) ||
		LLC_STATEEQ(linkp, REJECT)) && 
	       (linkp->llcl_slotsfree > 0) && 
	       (LLC_GETFLAG(linkp, REMOTE_BUSY) == 0)) {
		LLC_DEQUEUE(linkp, m);
		if (m == NULL)
			break;
		LLC_SETFRAME(linkp, m);
		(void)llc_statehandler(linkp, (struct llc *) 0, NL_DATA_REQUEST, 
				       0, 0);
	}
}
void llc_start ( struct llc_linkcb * linkp ) { register int i ; register struct mbuf * m ; int action ; while ( ( LLC_STATEEQ ( linkp , NORMAL ) || LLC_STATEEQ ( linkp , BUSY ) || LLC_STATEEQ ( linkp , REJECT ) ) && ( linkp -> llcl_slotsfree > 0 ) && ( LLC_GETFLAG ( linkp , REMOTE_BUSY ) == 0 ) ) { LLC_DEQUEUE ( linkp , m ) ; if ( m == NULL ) break ; LLC_SETFRAME ( linkp , m ) ; ( void ) llc_statehandler ( linkp , ( struct llc * ) 0 , NL_DATA_REQUEST , 0 , 0 ) ; } }
llc_start() --- We try to subsequently dequeue all the frames available and
                 send them out.
llc_start () --- We try to subsequently dequeue all the frames available and send them out .