equal
deleted
inserted
replaced
16 |
16 |
17 #include "ns3/core-module.h" |
17 #include "ns3/core-module.h" |
18 #include "ns3/simulator-module.h" |
18 #include "ns3/simulator-module.h" |
19 #include "ns3/node-module.h" |
19 #include "ns3/node-module.h" |
20 #include "ns3/helper-module.h" |
20 #include "ns3/helper-module.h" |
21 #include "ns3/global-routing-module.h" |
|
22 #include "ns3/wifi-module.h" |
21 #include "ns3/wifi-module.h" |
23 #include "ns3/mobility-module.h" |
22 #include "ns3/mobility-module.h" |
24 |
23 |
25 // Default Network Topology |
24 // Default Network Topology |
26 // |
25 // |
157 ApplicationContainer clientApps = |
156 ApplicationContainer clientApps = |
158 echoClient.Install (wifiStaNodes.Get (nWifi - 1)); |
157 echoClient.Install (wifiStaNodes.Get (nWifi - 1)); |
159 clientApps.Start (Seconds (2.0)); |
158 clientApps.Start (Seconds (2.0)); |
160 clientApps.Stop (Seconds (10.0)); |
159 clientApps.Stop (Seconds (10.0)); |
161 |
160 |
162 GlobalRouteManager::PopulateRoutingTables (); |
161 Ipv4GlobalRoutingHelper::PopulateRoutingTables (); |
163 |
162 |
164 Simulator::Stop (Seconds (10.0)); |
163 Simulator::Stop (Seconds (10.0)); |
165 |
164 |
166 PointToPointHelper::EnablePcapAll ("third"); |
165 PointToPointHelper::EnablePcapAll ("third"); |
167 phy.EnablePcap ("third", apDevices.Get (0)); |
166 phy.EnablePcap ("third", apDevices.Get (0)); |