ns-allinone-2.35/tcp/ack-recons.cc
void
AckReconsController::recv(Packet *p, Handler *)
{
	Tcl& tcl = Tcl::instance();
	hdr_ip *ip = hdr_ip::access(p);
	tcl.evalf("%s demux %d %d", name(),
		  ip->saddr(), ip->daddr());
	AckRecons *ackRecons = 
		(AckRecons *) TclObject::lookup(tcl.result());
	if (ackRecons == NULL) {
		printf("Error: malformed ack reconstructor\n");
		abort();
	}
	ackRecons->spq_ = spq_;
	ackRecons->recv(p);
}
/*
 * Demux a packet to the right ack reconstructor.
 */
Demux a packet to the right ack reconstructor.
Demux a packet to the right ack reconstructor .
void
AckReconsController::recv(Packet *p, Handler *)
{
	Tcl& tcl = Tcl::instance();
	hdr_ip *ip = hdr_ip::access(p);
	tcl.evalf("%s demux %d %d", name(),
		  ip->saddr(), ip->daddr());
	AckRecons *ackRecons = 
		(AckRecons *) TclObject::lookup(tcl.result());
	if (ackRecons == NULL) {
		printf("Error: malformed ack reconstructor\n");
		abort();
	}
	ackRecons->spq_ = spq_;
	ackRecons->recv(p);
}
void AckReconsController :: recv ( Packet * p , Handler * ) { Tcl & tcl = Tcl :: instance ( ) ; hdr_ip * ip = hdr_ip :: access ( p ) ; tcl . evalf ( " " , name ( ) , ip -> saddr ( ) , ip -> daddr ( ) ) ; AckRecons * ackRecons = ( AckRecons * ) TclObject :: lookup ( tcl . result ( ) ) ; if ( ackRecons == NULL ) { printf ( " \n " ) ; abort ( ) ; } ackRecons -> spq_ = spq_ ; ackRecons -> recv ( p ) ; }
Demux a packet to the right ack reconstructor.
Demux a packet to the right ack reconstructor .