View | Details | Raw Unified | Return to bug 2302
Collapse All | Expand All

(-)i/src/internet/model/tcp-socket-base.cc (-3 / +2 lines)
 Lines 2360-2367   TcpSocketBase::SendDataPacket (SequenceNumber32 seq, uint32_t maxSize, bool with Link Here 
2360
  NS_LOG_FUNCTION (this << seq << maxSize << withAck);
2360
  NS_LOG_FUNCTION (this << seq << maxSize << withAck);
2361
2361
2362
  bool isRetransmission = false;
2362
  bool isRetransmission = false;
2363
  if (seq == m_txBuffer->HeadSequence ()
2363
  if (seq < m_highTxMark)
2364
      && m_txBuffer->HeadSequence () != m_highRxAckMark)
2365
    {
2364
    {
2366
      isRetransmission = true;
2365
      isRetransmission = true;
2367
    }
2366
    }
 Lines 2446-2452   TcpSocketBase::SendDataPacket (SequenceNumber32 seq, uint32_t maxSize, bool with Link Here 
2446
    {
2445
    {
2447
      // Schedules retransmit timeout. If this is a retransmission, double the timer
2446
      // Schedules retransmit timeout. If this is a retransmission, double the timer
2448
2447
2449
      if (seq != m_highTxMark)
2448
      if (isRetransmission)
2450
        { // This is a retransmit
2449
        { // This is a retransmit
2451
          // RFC 6298, clause 2.5
2450
          // RFC 6298, clause 2.5
2452
          Time doubledRto = m_rto + m_rto;
2451
          Time doubledRto = m_rto + m_rto;

Return to bug 2302