Index: examples/routing/simple-point-to-point-olsr.cc |
=================================================================== |
--- a/examples/routing/simple-point-to-point-olsr.cc |
+++ b/examples/routing/simple-point-to-point-olsr.cc |
@@ -157,10 +157,9 @@ |
apps.Start (Seconds (1.1)); |
apps.Stop (Seconds (10.0)); |
- std::ofstream ascii; |
- ascii.open ("simple-point-to-point-olsr.tr"); |
- PointToPointHelper::EnablePcapAll ("simple-point-to-point-olsr"); |
- PointToPointHelper::EnableAsciiAll (ascii); |
+ AsciiTraceHelper ascii; |
+ p2p.EnableAsciiAll (ascii.CreateFileStream ("simple-point-to-point-olsr.tr")); |
+ p2p.EnablePcapAll ("simple-point-to-point-olsr"); |
Simulator::Stop (Seconds (30)); |