traffic-control: Fix RED examples after moving the MaxSize attribute
This commit is contained in:
committed by
Stefano Avallone
parent
49b47a4e8c
commit
dbb3f2ba4a
@@ -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
|
||||
|
||||
@@ -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<Packet>::MaxSize",
|
||||
QueueSizeValue (QueueSize (QueueSizeUnit::PACKETS, maxPackets)));
|
||||
|
||||
if (!modeBytes)
|
||||
|
||||
@@ -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<Packet>::MaxSize",
|
||||
QueueSizeValue (QueueSize (QueueSizeUnit::PACKETS, maxPackets)));
|
||||
|
||||
if (!modeBytes)
|
||||
|
||||
Reference in New Issue
Block a user