ns-allinone-2.35/ns-2.35/dccp/dccp_tcplike.cc
inline void DCCPTCPlikeAgent::clearSendRecvHistory(){
	struct dccp_tcplike_send_recv_hist_entry *elm, *elm2;

	/* Empty packet history */
	elm = STAILQ_FIRST(&send_recv_hist_);
	while (elm != NULL) {
		elm2 = STAILQ_NEXT(elm, linfo_);
		delete elm;
		elm = elm2;
	}
	
	STAILQ_INIT(&send_recv_hist_);
}
/* Clear the history of received packets */
Clear the history of received packets
Clear the history of received packets
inline void DCCPTCPlikeAgent::clearSendRecvHistory(){
	struct dccp_tcplike_send_recv_hist_entry *elm, *elm2;
	elm = STAILQ_FIRST(&send_recv_hist_);
	while (elm != NULL) {
		elm2 = STAILQ_NEXT(elm, linfo_);
		delete elm;
		elm = elm2;
	}
	STAILQ_INIT(&send_recv_hist_);
}
inline void DCCPTCPlikeAgent :: clearSendRecvHistory ( ) { struct dccp_tcplike_send_recv_hist_entry * elm , * elm2 ; elm = STAILQ_FIRST ( & send_recv_hist_ ) ; while ( elm != NULL ) { elm2 = STAILQ_NEXT ( elm , linfo_ ) ; delete elm ; elm = elm2 ; } STAILQ_INIT ( & send_recv_hist_ ) ; }
Clear the history of received packets
Clear the history of received packets
/* Empty packet history */