ns-allinone-2.35/ns-2.35/mcast/rcvbuf.cc
int RcvBuffer::exists_pkt (int i)
{
	if (i <= maxpkt_)  return 1;
	if (i >= nextpkt_) return 0;

	Gap *g;
	for (g = gap_; g; g = g->next_)
		if (g->start_ <= i && i <= g->end_)
			return 0;
	return 1;
}
//
// Return 0 if packet does not exist in the
// buffer, 1 if it does
//
Return 0 if packet does not exist in the
buffer, 1 if it does
Return 0 if packet does not exist in the buffer 1 if it does
int RcvBuffer::exists_pkt (int i)
{
	if (i <= maxpkt_)  return 1;
	if (i >= nextpkt_) return 0;
	Gap *g;
	for (g = gap_; g; g = g->next_)
		if (g->start_ <= i && i <= g->end_)
			return 0;
	return 1;
}
int RcvBuffer :: exists_pkt ( int i ) { if ( i <= maxpkt_ ) return 1 ; if ( i >= nextpkt_ ) return 0 ; Gap * g ; for ( g = gap_ ; g ; g = g -> next_ ) if ( g -> start_ <= i && i <= g -> end_ ) return 0 ; return 1 ; }
Return 0 if packet does not exist in the
buffer, 1 if it does
Return 0 if packet does not exist in the buffer 1 if it does