pass regression tests on mingw
This commit is contained in:
@@ -111,7 +111,7 @@ main (int argc, char *argv[])
|
||||
// and can be read by the "tcpdump -tt -r" command
|
||||
CsmaHelper::EnablePcapAll ("csma-broadcast", false);
|
||||
std::ofstream ascii;
|
||||
ascii.open ("csma-broadcast.tr");
|
||||
ascii.open ("csma-broadcast.tr", std::ios_base::binary | std::ios_base::out);
|
||||
CsmaHelper::EnableAsciiAll (ascii);
|
||||
|
||||
NS_LOG_INFO ("Run Simulation.");
|
||||
|
||||
@@ -166,7 +166,7 @@ main (int argc, char *argv[])
|
||||
// Ascii trace output will be sent to the file "csma-multicast.tr"
|
||||
//
|
||||
std::ofstream ascii;
|
||||
ascii.open ("csma-multicast.tr");
|
||||
ascii.open ("csma-multicast.tr",std::ios_base::binary | std::ios_base::out);
|
||||
CsmaHelper::EnableAsciiAll (ascii);
|
||||
|
||||
// Also configure some tcpdump traces; each interface will be traced.
|
||||
|
||||
@@ -120,7 +120,7 @@ main (int argc, char *argv[])
|
||||
//
|
||||
NS_LOG_INFO ("Configure Tracing.");
|
||||
std::ofstream ascii;
|
||||
ascii.open ("csma-one-subnet.tr");
|
||||
ascii.open ("csma-one-subnet.tr", std::ios_base::binary | std::ios_base::out);
|
||||
CsmaHelper::EnableAsciiAll (ascii);
|
||||
//
|
||||
// Also configure some tcpdump traces; each interface will be traced.
|
||||
|
||||
@@ -60,7 +60,7 @@ main (int argc, char *argv[])
|
||||
CommandLine cmd;
|
||||
cmd.Parse (argc, argv);
|
||||
|
||||
g_os.open ("csma-packet-socket-sink.tr");
|
||||
g_os.open ("csma-packet-socket-sink.tr",std::ios_base::binary | std::ios_base::out);
|
||||
|
||||
// Here, we will explicitly create four nodes.
|
||||
NS_LOG_INFO ("Create nodes.");
|
||||
@@ -117,7 +117,7 @@ main (int argc, char *argv[])
|
||||
// Trace output will be sent to the csma-packet-socket.tr file
|
||||
NS_LOG_INFO ("Configure Tracing.");
|
||||
std::ofstream os;
|
||||
os.open ("csma-packet-socket.tr");
|
||||
os.open ("csma-packet-socket.tr", std::ios_base::binary | std::ios_base::out);
|
||||
csma.EnableAsciiAll (os);
|
||||
|
||||
NS_LOG_INFO ("Run Simulation.");
|
||||
|
||||
@@ -190,7 +190,7 @@ main (int argc, char *argv[])
|
||||
|
||||
|
||||
std::ofstream ascii;
|
||||
ascii.open ("dynamic-global-routing.tr");
|
||||
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);
|
||||
|
||||
@@ -121,7 +121,7 @@ main (int argc, char *argv[])
|
||||
apps.Stop (Seconds (10.0));
|
||||
|
||||
std::ofstream ascii;
|
||||
ascii.open ("global-routing-slash32.tr");
|
||||
ascii.open ("global-routing-slash32.tr", std::ios_base::binary | std::ios_base::out);
|
||||
PointToPointHelper::EnablePcapAll ("global-routing-slash32");
|
||||
PointToPointHelper::EnableAsciiAll (ascii);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user