From dbb3f2ba4a75e55c9d295048adcfb1a92e5c81ca Mon Sep 17 00:00:00 2001 From: BHASKAR K Date: Thu, 9 Apr 2020 09:45:15 +0200 Subject: [PATCH] traffic-control: Fix RED examples after moving the MaxSize attribute --- examples/traffic-control/examples-to-run.py | 2 ++ examples/traffic-control/red-vs-fengadaptive.cc | 2 +- examples/traffic-control/red-vs-nlred.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/traffic-control/examples-to-run.py b/examples/traffic-control/examples-to-run.py index 9ec71d6b8..137aa4304 100755 --- a/examples/traffic-control/examples-to-run.py +++ b/examples/traffic-control/examples-to-run.py @@ -9,6 +9,8 @@ # See test.py for more information. cpp_examples = [ ("traffic-control", "True", "True"), + ("red-vs-nlred", "True", "True"), + ("red-vs-fengadaptive", "True", "True"), ] # A list of Python examples to run in order to ensure that they remain diff --git a/examples/traffic-control/red-vs-fengadaptive.cc b/examples/traffic-control/red-vs-fengadaptive.cc index 90f790f55..f09616988 100644 --- a/examples/traffic-control/red-vs-fengadaptive.cc +++ b/examples/traffic-control/red-vs-fengadaptive.cc @@ -70,7 +70,7 @@ int main (int argc, char *argv[]) Config::SetDefault ("ns3::OnOffApplication::PacketSize", UintegerValue (pktSize)); Config::SetDefault ("ns3::OnOffApplication::DataRate", StringValue (appDataRate)); - Config::SetDefault ("ns3::QueueBase::MaxSize", + Config::SetDefault ("ns3::DropTailQueue::MaxSize", QueueSizeValue (QueueSize (QueueSizeUnit::PACKETS, maxPackets))); if (!modeBytes) diff --git a/examples/traffic-control/red-vs-nlred.cc b/examples/traffic-control/red-vs-nlred.cc index 907c1bde5..c2fcaf653 100644 --- a/examples/traffic-control/red-vs-nlred.cc +++ b/examples/traffic-control/red-vs-nlred.cc @@ -72,7 +72,7 @@ int main (int argc, char *argv[]) Config::SetDefault ("ns3::OnOffApplication::PacketSize", UintegerValue (pktSize)); Config::SetDefault ("ns3::OnOffApplication::DataRate", StringValue (appDataRate)); - Config::SetDefault ("ns3::QueueBase::MaxSize", + Config::SetDefault ("ns3::DropTailQueue::MaxSize", QueueSizeValue (QueueSize (QueueSizeUnit::PACKETS, maxPackets))); if (!modeBytes)