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

(-)a/src/traffic-control/model/red-queue-disc.cc (-1 / +2 lines)
 Lines 382-388   RedQueueDisc::DoEnqueue (Ptr<QueueDiscItem> item) Link Here 
382
      m_old = 0;
382
      m_old = 0;
383
    }
383
    }
384
384
385
  if (nQueued >= m_queueLimit)
385
  if ((GetMode () == Queue::QUEUE_MODE_PACKETS && nQueued >= m_queueLimit) ||
386
      (GetMode () == Queue::QUEUE_MODE_BYTES && nQueued + item->GetPacketSize() > m_queueLimit))
386
    {
387
    {
387
      NS_LOG_DEBUG ("\t Dropping due to Queue Full " << nQueued);
388
      NS_LOG_DEBUG ("\t Dropping due to Queue Full " << nQueued);
388
      dropType = DTYPE_FORCED;
389
      dropType = DTYPE_FORCED;

Return to bug 2340