ns-allinone-2.35/tcp/tcp.cc
void TcpAgent::tcp_eln(Packet *pkt)
{
        //int eln_rxmit;
        hdr_tcp *tcph = hdr_tcp::access(pkt);
        int ack = tcph->seqno();

        if (++dupacks_ == eln_rxmit_thresh_ && ack > eln_last_rxmit_) {
                /* Retransmit this packet */
                output(last_ack_ + 1, TCP_REASON_DUPACK);
                eln_last_rxmit_ = last_ack_+1;
        } else
                send_much(0, 0, maxburst_);

        Packet::free(pkt);
        return;
}
/* 
 * Check if the packet (ack) has the ELN bit set, and if it does, and if the
 * last ELN-rxmitted packet is smaller than this one, then retransmit the
 * packet.  Do not adjust the cwnd when this happens.
 */
Check if the packet (ack) has the ELN bit set, and if it does, and if the
last ELN-rxmitted packet is smaller than this one, then retransmit the
packet.  Do not adjust the cwnd when this happens.
Check if the packet ( ack ) has the ELN bit set and if it does and if the last ELN - rxmitted packet is smaller than this one then retransmit the packet . Do not adjust the cwnd when this happens .
void TcpAgent::tcp_eln(Packet *pkt)
{
        hdr_tcp *tcph = hdr_tcp::access(pkt);
        int ack = tcph->seqno();
        if (++dupacks_ == eln_rxmit_thresh_ && ack > eln_last_rxmit_) {
                output(last_ack_ + 1, TCP_REASON_DUPACK);
                eln_last_rxmit_ = last_ack_+1;
        } else
                send_much(0, 0, maxburst_);
        Packet::free(pkt);
        return;
}
void TcpAgent :: tcp_eln ( Packet * pkt ) { hdr_tcp * tcph = hdr_tcp :: access ( pkt ) ; int ack = tcph -> seqno ( ) ; if ( ++ dupacks_ == eln_rxmit_thresh_ && ack > eln_last_rxmit_ ) { output ( last_ack_ + 1 , TCP_REASON_DUPACK ) ; eln_last_rxmit_ = last_ack_ + 1 ; } else send_much ( 0 , 0 , maxburst_ ) ; Packet :: free ( pkt ) ; return ; }
Check if the packet (ack) has the ELN bit set, and if it does, and if the
 last ELN-rxmitted packet is smaller than this one, then retransmit the
 packet.
Check if the packet ( ack ) has the ELN bit set and if it does and if the last ELN - rxmitted packet is smaller than this one then retransmit the packet .
//int eln_rxmit; /* Retransmit this packet */