Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2016 NITK Surathkal | 3 * Copyright (c) 2016 NITK Surathkal |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 global_start_time = 0.0; | 152 global_start_time = 0.0; |
153 sink_start_time = global_start_time; | 153 sink_start_time = global_start_time; |
154 client_start_time = global_start_time + 1.5; | 154 client_start_time = global_start_time + 1.5; |
155 global_stop_time = 7.0; | 155 global_stop_time = 7.0; |
156 sink_stop_time = global_stop_time + 3.0; | 156 sink_stop_time = global_stop_time + 3.0; |
157 client_stop_time = global_stop_time - 2.0; | 157 client_stop_time = global_stop_time - 2.0; |
158 | 158 |
159 // Configuration and command line parameter parsing | 159 // Configuration and command line parameter parsing |
160 // Will only save in the directory if enable opts below | 160 // Will only save in the directory if enable opts below |
161 pathOut = "."; // Current directory | 161 pathOut = "."; // Current directory |
162 | |
Stefano Avallone
2017/12/29 22:56:38
Why?
ammo6818-vandals.uidaho.edu
2017/12/31 05:15:03
changed for formatting. There is other Windows on
| |
162 CommandLine cmd; | 163 CommandLine cmd; |
163 cmd.AddValue ("pathOut", "Path to save results from --writeForPlot/--writePcap /--writeFlowMonitor", pathOut); | 164 cmd.AddValue ("pathOut", "Path to save results from --writeForPlot/--writePcap /--writeFlowMonitor", pathOut); |
164 cmd.AddValue ("writeForPlot", "<0/1> to write results for plot (gnuplot)", wri teForPlot); | 165 cmd.AddValue ("writeForPlot", "<0/1> to write results for plot (gnuplot)", wri teForPlot); |
165 cmd.AddValue ("writePcap", "<0/1> to write results in pcapfile", writePcap); | 166 cmd.AddValue ("writePcap", "<0/1> to write results in pcapfile", writePcap); |
166 cmd.AddValue ("writeFlowMonitor", "<0/1> to enable Flow Monitor and write thei r results", flowMonitor); | 167 cmd.AddValue ("writeFlowMonitor", "<0/1> to enable Flow Monitor and write thei r results", flowMonitor); |
167 | 168 |
168 cmd.Parse (argc, argv); | 169 cmd.Parse (argc, argv); |
169 | 170 |
170 NS_LOG_INFO ("Create nodes"); | 171 NS_LOG_INFO ("Create nodes"); |
171 NodeContainer c; | 172 NodeContainer c; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
326 std::cout << "\t " << st.GetNDroppedPackets (PieQueueDisc::UNFORCED_DROP) | 327 std::cout << "\t " << st.GetNDroppedPackets (PieQueueDisc::UNFORCED_DROP) |
327 << " drops due to prob mark" << std::endl; | 328 << " drops due to prob mark" << std::endl; |
328 std::cout << "\t " << st.GetNDroppedPackets (PieQueueDisc::FORCED_DROP) | 329 std::cout << "\t " << st.GetNDroppedPackets (PieQueueDisc::FORCED_DROP) |
329 << " drops due to queue limits" << std::endl; | 330 << " drops due to queue limits" << std::endl; |
330 } | 331 } |
331 | 332 |
332 Simulator::Destroy (); | 333 Simulator::Destroy (); |
333 | 334 |
334 return 0; | 335 return 0; |
335 } | 336 } |
OLD | NEW |