1.1 --- a/examples/csma-broadcast.cc Mon May 04 11:24:17 2009 +0200
1.2 +++ b/examples/csma-broadcast.cc Mon May 04 16:30:53 2009 +0200
1.3 @@ -111,7 +111,7 @@
1.4 // and can be read by the "tcpdump -tt -r" command
1.5 CsmaHelper::EnablePcapAll ("csma-broadcast", false);
1.6 std::ofstream ascii;
1.7 - ascii.open ("csma-broadcast.tr");
1.8 + ascii.open ("csma-broadcast.tr", std::ios_base::binary | std::ios_base::out);
1.9 CsmaHelper::EnableAsciiAll (ascii);
1.10
1.11 NS_LOG_INFO ("Run Simulation.");
2.1 --- a/examples/csma-multicast.cc Mon May 04 11:24:17 2009 +0200
2.2 +++ b/examples/csma-multicast.cc Mon May 04 16:30:53 2009 +0200
2.3 @@ -166,7 +166,7 @@
2.4 // Ascii trace output will be sent to the file "csma-multicast.tr"
2.5 //
2.6 std::ofstream ascii;
2.7 - ascii.open ("csma-multicast.tr");
2.8 + ascii.open ("csma-multicast.tr",std::ios_base::binary | std::ios_base::out);
2.9 CsmaHelper::EnableAsciiAll (ascii);
2.10
2.11 // Also configure some tcpdump traces; each interface will be traced.
3.1 --- a/examples/csma-one-subnet.cc Mon May 04 11:24:17 2009 +0200
3.2 +++ b/examples/csma-one-subnet.cc Mon May 04 16:30:53 2009 +0200
3.3 @@ -120,7 +120,7 @@
3.4 //
3.5 NS_LOG_INFO ("Configure Tracing.");
3.6 std::ofstream ascii;
3.7 - ascii.open ("csma-one-subnet.tr");
3.8 + ascii.open ("csma-one-subnet.tr", std::ios_base::binary | std::ios_base::out);
3.9 CsmaHelper::EnableAsciiAll (ascii);
3.10 //
3.11 // Also configure some tcpdump traces; each interface will be traced.
4.1 --- a/examples/csma-packet-socket.cc Mon May 04 11:24:17 2009 +0200
4.2 +++ b/examples/csma-packet-socket.cc Mon May 04 16:30:53 2009 +0200
4.3 @@ -60,7 +60,7 @@
4.4 CommandLine cmd;
4.5 cmd.Parse (argc, argv);
4.6
4.7 - g_os.open ("csma-packet-socket-sink.tr");
4.8 + g_os.open ("csma-packet-socket-sink.tr",std::ios_base::binary | std::ios_base::out);
4.9
4.10 // Here, we will explicitly create four nodes.
4.11 NS_LOG_INFO ("Create nodes.");
4.12 @@ -117,7 +117,7 @@
4.13 // Trace output will be sent to the csma-packet-socket.tr file
4.14 NS_LOG_INFO ("Configure Tracing.");
4.15 std::ofstream os;
4.16 - os.open ("csma-packet-socket.tr");
4.17 + os.open ("csma-packet-socket.tr", std::ios_base::binary | std::ios_base::out);
4.18 csma.EnableAsciiAll (os);
4.19
4.20 NS_LOG_INFO ("Run Simulation.");
5.1 --- a/examples/dynamic-global-routing.cc Mon May 04 11:24:17 2009 +0200
5.2 +++ b/examples/dynamic-global-routing.cc Mon May 04 16:30:53 2009 +0200
5.3 @@ -190,7 +190,7 @@
5.4
5.5
5.6 std::ofstream ascii;
5.7 - ascii.open ("dynamic-global-routing.tr");
5.8 + ascii.open ("dynamic-global-routing.tr", std::ios_base::binary | std::ios_base::out);
5.9 PointToPointHelper::EnablePcapAll ("dynamic-global-routing");
5.10 PointToPointHelper::EnableAsciiAll (ascii);
5.11 CsmaHelper::EnablePcapAll ("dynamic-global-routing", false);
6.1 --- a/examples/global-routing-slash32.cc Mon May 04 11:24:17 2009 +0200
6.2 +++ b/examples/global-routing-slash32.cc Mon May 04 16:30:53 2009 +0200
6.3 @@ -121,7 +121,7 @@
6.4 apps.Stop (Seconds (10.0));
6.5
6.6 std::ofstream ascii;
6.7 - ascii.open ("global-routing-slash32.tr");
6.8 + ascii.open ("global-routing-slash32.tr", std::ios_base::binary | std::ios_base::out);
6.9 PointToPointHelper::EnablePcapAll ("global-routing-slash32");
6.10 PointToPointHelper::EnableAsciiAll (ascii);
6.11