traffic-control: (fixes #2751) Ensure queue discs keep correct statistics

This commit is contained in:
Stefano Avallone
2017-09-14 18:12:19 +02:00
parent 923ef42e42
commit 59cd4d5f55
12 changed files with 341 additions and 228 deletions

View File

@@ -552,6 +552,10 @@ Queue<Item>::DoRemove (ConstIterator pos)
m_nBytes -= item->GetSize ();
m_nPackets--;
// packets are first dequeued and then dropped
NS_LOG_LOGIC ("m_traceDequeue (p)");
m_traceDequeue (item);
DropAfterDequeue (item);
}
return item;