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

(-)ns-allinone-3.23/ns-3.23/src/internet/model/tcp-socket-base.cc (-2 / +2 lines)
 Lines 2065-2073    Link Here 
2065
    }
2065
    }
2066
2066
2067
  // Notify the application of the data being sent unless this is a retransmit
2067
  // Notify the application of the data being sent unless this is a retransmit
2068
  if (seq == m_highTxMark)
2068
  if (m_highTxMark >= seq && m_highTxMark < (seq + sz))
2069
    {
2069
    {
2070
      Simulator::ScheduleNow (&TcpSocketBase::NotifyDataSent, this, sz);
2070
      Simulator::ScheduleNow (&TcpSocketBase::NotifyDataSent, this, (seq + sz - m_highTxMark.Get ()));
2071
    }
2071
    }
2072
  // Update highTxMark
2072
  // Update highTxMark
2073
  m_highTxMark = std::max (seq + sz, m_highTxMark.Get ());
2073
  m_highTxMark = std::max (seq + sz, m_highTxMark.Get ());

Return to bug 2141