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

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

Issue 196058: Redo ASCII and pcap Traces
Patch Set: Created 14 years, 2 months 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
Index: examples/routing/dynamic-global-routing.cc
===================================================================
--- a/examples/routing/dynamic-global-routing.cc
+++ b/examples/routing/dynamic-global-routing.cc
@@ -190,13 +190,14 @@
apps2.Stop (Seconds (16.0));
- std::ofstream ascii;
- ascii.open ("dynamic-global-routing.tr", std::ios_base::binary | std::ios_base::out);
- PointToPointHelper::EnablePcapAll ("dynamic-global-routing");
- PointToPointHelper::EnableAsciiAll (ascii);
- CsmaHelper::EnablePcapAll ("dynamic-global-routing", false);
- CsmaHelper::EnableAsciiAll (ascii);
- InternetStackHelper::EnableAsciiAll (ascii);
+ AsciiTraceHelper ascii;
+ Ptr<OutputStreamObject> stream = ascii.CreateFileStream ("dynamic-global-routing.tr");
+ p2p.EnableAsciiAll (stream);
+ csma.EnableAsciiAll (stream);
+ internet.EnableAsciiIpv4All (stream);
+
+ p2p.EnablePcapAll ("dynamic-global-routing");
+ csma.EnablePcapAll ("dynamic-global-routing", false);
Ptr<Node> n1 = c.Get (1);
Ptr<Ipv4> ipv41 = n1->GetObject<Ipv4> ();

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