ns-allinone-2.35/ns-2.35/dccp/dccp_tcplike.cc
inline struct dccp_tcplike_send_hist_entry* DCCPTCPlikeAgent::findPacketInSendHistory(u_int32_t seq_num, dccp_tcplike_send_hist_entry* start_elm){
	struct dccp_tcplike_send_hist_entry *elm = start_elm;
	while (elm != NULL && elm->seq_num_ > seq_num)
		elm = STAILQ_NEXT(elm, linfo_);
	return elm;
}
/* Find a specific packet in the send history
 * arg: seq_num - sequence number of packet to find
 *      start_elm - start searching from this element
 * ret: pointer to the correct element if the element is found
 *      otherwise the closest packet with lower seq num is returned
 *      which can be NULL.
 */
Find a specific packet in the send history
arg: seq_num - sequence number of packet to find
start_elm - start searching from this element
ret: pointer to the correct element if the element is found
otherwise the closest packet with lower seq num is returned
which can be NULL.
Find a specific packet in the send history arg : seq_num - sequence number of packet to find start_elm - start searching from this element ret : pointer to the correct element if the element is found otherwise the closest packet with lower seq num is returned which can be NULL .
inline struct dccp_tcplike_send_hist_entry* DCCPTCPlikeAgent::findPacketInSendHistory(u_int32_t seq_num, dccp_tcplike_send_hist_entry* start_elm){
	struct dccp_tcplike_send_hist_entry *elm = start_elm;
	while (elm != NULL && elm->seq_num_ > seq_num)
		elm = STAILQ_NEXT(elm, linfo_);
	return elm;
}
inline struct dccp_tcplike_send_hist_entry * DCCPTCPlikeAgent :: findPacketInSendHistory ( u_int32_t seq_num , dccp_tcplike_send_hist_entry * start_elm ) { struct dccp_tcplike_send_hist_entry * elm = start_elm ; while ( elm != NULL && elm -> seq_num_ > seq_num ) elm = STAILQ_NEXT ( elm , linfo_ ) ; return elm ; }
Find a specific packet in the send history
 arg: seq_num - sequence number of packet to find
      start_elm - start searching from this element
 ret: pointer to the correct element if the element is found
      otherwise the closest packet with lower seq num is returned
      which can be NULL.
Find a specific packet in the send history arg : seq_num - sequence number of packet to find start_elm - start searching from this element ret : pointer to the correct element if the element is found otherwise the closest packet with lower seq num is returned which can be NULL .