ns-allinone-2.35/queue/cbq.cc
void
CBQueue::toplevel_departure(CBQClass *cl, double now)
{
	if (toplevel_ >= last_lender_->level_) {
		if ((cl->qmon_->pkts() <= 1) ||
		    last_lender_->undertime_ > now) {
			toplevel_ = MAXLEVEL;
		} else {
			toplevel_ = last_lender_->level_;
		}
	}
}
/*
 *
 * toplevel_arrival:	called only using TL link sharing on arrival
 * toplevel_departure:	called only using TL link sharing on departure
 */
called only using TL link sharing on arrival
toplevel_departure:  called only using TL link sharing on departure
called only using TL link sharing on arrival toplevel_departure : called only using TL link sharing on departure
void
CBQueue::toplevel_departure(CBQClass *cl, double now)
{
	if (toplevel_ >= last_lender_->level_) {
		if ((cl->qmon_->pkts() <= 1) ||
		    last_lender_->undertime_ > now) {
			toplevel_ = MAXLEVEL;
		} else {
			toplevel_ = last_lender_->level_;
		}
	}
}
void CBQueue :: toplevel_departure ( CBQClass * cl , double now ) { if ( toplevel_ >= last_lender_ -> level_ ) { if ( ( cl -> qmon_ -> pkts ( ) <= 1 ) || last_lender_ -> undertime_ > now ) { toplevel_ = MAXLEVEL ; } else { toplevel_ = last_lender_ -> level_ ; } } }
toplevel_arrival:    called only using TL link sharing on arrival
 toplevel_departure:  called only using TL link sharing on departure
toplevel_arrival : called only using TL link sharing on arrival toplevel_departure : called only using TL link sharing on departure