Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3208)

Unified Diff: examples/routing/global-routing-slash32.cc

Issue 313270043: Add NetDeviceQueueInterface methods to implement flow control (Closed)
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/routing/global-injection-slash32.cc ('k') | examples/routing/static-routing-slash32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/routing/global-routing-slash32.cc
diff --git a/examples/routing/global-routing-slash32.cc b/examples/routing/global-routing-slash32.cc
index 561f419a77482aca814a91cc16c553b2d913569e..c8ee02c4981efd60ab7f948f5b38080b94af4289 100644
--- a/examples/routing/global-routing-slash32.cc
+++ b/examples/routing/global-routing-slash32.cc
@@ -69,10 +69,12 @@ main (int argc, char *argv[])
Ptr<CsmaNetDevice> deviceA = CreateObject<CsmaNetDevice> ();
deviceA->SetAddress (Mac48Address::Allocate ());
nA->AddDevice (deviceA);
+ deviceA->SetQueue (CreateObject<DropTailQueue<Packet> > ());
Ptr<CsmaNetDevice> deviceC = CreateObject<CsmaNetDevice> ();
deviceC->SetAddress (Mac48Address::Allocate ());
nC->AddDevice (deviceC);
+ deviceC->SetQueue (CreateObject<DropTailQueue<Packet> > ());
// Later, we add IP addresses.
Ipv4AddressHelper ipv4;
« no previous file with comments | « examples/routing/global-injection-slash32.cc ('k') | examples/routing/static-routing-slash32.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b