ns-allinone-2.35/ns-2.35/dccp/dccp_ackv.cc
void DCCPAckVector::clearAckHistory(){
	struct dccp_ackv_hist_entry *elm, *elm2;

	/* Empty packet history */
	elm = STAILQ_FIRST(&ack_hist_);
	while (elm != NULL) {
		elm2 = STAILQ_NEXT(elm, linfo_);
		delete elm;
		elm = elm2;
	}
	
	STAILQ_INIT(&ack_hist_);
}
/* Remove all items in the ack history */
Remove all items in the ack history
Remove all items in the ack history
void DCCPAckVector::clearAckHistory(){
	struct dccp_ackv_hist_entry *elm, *elm2;
	elm = STAILQ_FIRST(&ack_hist_);
	while (elm != NULL) {
		elm2 = STAILQ_NEXT(elm, linfo_);
		delete elm;
		elm = elm2;
	}
	STAILQ_INIT(&ack_hist_);
}
void DCCPAckVector :: clearAckHistory ( ) { struct dccp_ackv_hist_entry * elm , * elm2 ; elm = STAILQ_FIRST ( & ack_hist_ ) ; while ( elm != NULL ) { elm2 = STAILQ_NEXT ( elm , linfo_ ) ; delete elm ; elm = elm2 ; } STAILQ_INIT ( & ack_hist_ ) ; }
Remove all items in the ack history
Remove all items in the ack history
/* Empty packet history */