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

(-)i/src/internet/model/codel-queue.cc (+12 lines)
 Lines 399-404   CoDelQueue::DoDequeue (void) Link Here 
399
              // hence the while loop.
399
              // hence the while loop.
400
              NS_LOG_LOGIC ("Sojourn time is still above target and it's time for next drop; dropping " << p);
400
              NS_LOG_LOGIC ("Sojourn time is still above target and it's time for next drop; dropping " << p);
401
              Drop (p);
401
              Drop (p);
402
403
              // p was in queue, trace dequeue and update stats manually
404
              m_traceDequeue (p);
405
              m_nBytes -= p->GetSize ();
406
              m_nPackets--;
407
402
              ++m_dropCount;
408
              ++m_dropCount;
403
              ++m_count;
409
              ++m_count;
404
              NewtonStep ();
410
              NewtonStep ();
 Lines 444-449   CoDelQueue::DoDequeue (void) Link Here 
444
          NS_LOG_LOGIC ("Sojourn time goes above target, dropping the first packet " << p << " and entering the dropping state");
450
          NS_LOG_LOGIC ("Sojourn time goes above target, dropping the first packet " << p << " and entering the dropping state");
445
          ++m_dropCount;
451
          ++m_dropCount;
446
          Drop (p);
452
          Drop (p);
453
454
          // p was in queue, trace the dequeue and update stats manually
455
          m_traceDequeue (p);
456
          m_nBytes -= p->GetSize ();
457
          m_nPackets--;
458
447
          if (m_packets.empty ())
459
          if (m_packets.empty ())
448
            {
460
            {
449
              m_dropping = false;
461
              m_dropping = false;
(-)i/src/network/utils/queue.h (-1 lines)
 Lines 180-186   protected: Link Here 
180
   */
180
   */
181
  void Drop (Ptr<Packet> packet);
181
  void Drop (Ptr<Packet> packet);
182
182
183
private:
184
  /// Traced callback: fired when a packet is enqueued
183
  /// Traced callback: fired when a packet is enqueued
185
  TracedCallback<Ptr<const Packet> > m_traceEnqueue;
184
  TracedCallback<Ptr<const Packet> > m_traceEnqueue;
186
  /// Traced callback: fired when a packet is dequeued
185
  /// Traced callback: fired when a packet is dequeued

Return to bug 2070