ns-allinone-2.35/tcp/tcp-asym.cc
void TcpAsymAgent::output_helper(Packet* p) 
{
	hdr_tcpasym *tcpha = hdr_tcpasym::access(p);
	hdr_flags *flagsh = hdr_flags::access(p);

	tcpha->win() = min(highest_ack_+window(), curseq_) - t_seqno_;
	tcpha->highest_ack() = highest_ack_;
	tcpha->max_left_to_send() = curseq_ - highest_ack_; /* XXXX not needed? */

	flagsh->ecnecho() = ecn_to_echo_;
	ecn_to_echo_ = 0;
}
/* fill in the TCP asym header before packet is sent out */
fill in the TCP asym header before packet is sent out
fill in the TCP asym header before packet is sent out
void TcpAsymAgent::output_helper(Packet* p) 
{
	hdr_tcpasym *tcpha = hdr_tcpasym::access(p);
	hdr_flags *flagsh = hdr_flags::access(p);
	tcpha->win() = min(highest_ack_+window(), curseq_) - t_seqno_;
	tcpha->highest_ack() = highest_ack_;
	tcpha->max_left_to_send() = curseq_ - highest_ack_; 
	flagsh->ecnecho() = ecn_to_echo_;
	ecn_to_echo_ = 0;
}
void TcpAsymAgent :: output_helper ( Packet * p ) { hdr_tcpasym * tcpha = hdr_tcpasym :: access ( p ) ; hdr_flags * flagsh = hdr_flags :: access ( p ) ; tcpha -> win ( ) = min ( highest_ack_ + window ( ) , curseq_ ) - t_seqno_ ; tcpha -> highest_ack ( ) = highest_ack_ ; tcpha -> max_left_to_send ( ) = curseq_ - highest_ack_ ; flagsh -> ecnecho ( ) = ecn_to_echo_ ; ecn_to_echo_ = 0 ; }
fill in the TCP asym header before packet is sent out
fill in the TCP asym header before packet is sent out
/* XXXX not needed? */