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

(-)i/src/internet/model/tcp-socket-base.cc (-2 / +2 lines)
 Lines 2430-2438   TcpSocketBase::SendDataPacket (SequenceNumber32 seq, uint32_t maxSize, bool with Link Here 
2430
    }
2430
    }
2431
2431
2432
  // Notify the application of the data being sent unless this is a retransmit
2432
  // Notify the application of the data being sent unless this is a retransmit
2433
  if (seq == m_highTxMark)
2433
  if (seq + sz > m_highTxMark)
2434
    {
2434
    {
2435
      Simulator::ScheduleNow (&TcpSocketBase::NotifyDataSent, this, sz);
2435
      Simulator::ScheduleNow (&TcpSocketBase::NotifyDataSent, this, (seq + sz - m_highTxMark.Get ()));
2436
    }
2436
    }
2437
  // Update highTxMark
2437
  // Update highTxMark
2438
  m_highTxMark = std::max (seq + sz, m_highTxMark.Get ());
2438
  m_highTxMark = std::max (seq + sz, m_highTxMark.Get ());

Return to bug 2141